Product Overview

Hyperswitch Prism

One integration. Any payment processor. Zero lock-in.

License: Apache 2.0arrow-up-right

A high-performance payment abstraction library, and part of Juspay Hyperswitcharrow-up-right β€” the open-source, composable payments platform with 40,000+ GitHub stars, trusted by leading brands worldwide.

GitHubarrow-up-right Β· Websitearrow-up-right Β· Documentationarrow-up-right


🎯 What is Prism?

Today, integrating multiple payment processors either makes developers running in circles with AI agents to recreate integrations from specs, or developers spending months of engineering effort.

Because every payment processor has diverse APIs, error codes, authentication methods, pdf documents to read, and above all - different behaviour in the actual environment when compared to documented specs. All this rests as tribal or undocumented knowledge making it harder AI agents which are very good at implementing clearly documented specification.

Prism is a stateless, unified connector library for AI agents and Developers to connect with any payment processor

Prism offers hardened transformation through testing on payment processor environment & iterative bug fixing

Prism can be embedded in your server application with its wide range of multi-language SDKs, or run as a gRPC microservice

❌ Without Prism
βœ… With Prism

πŸ—‚οΈ 100+ different API schemas

πŸ“‹ Single unified schema

⏳ Never ending agent loops/ months of integration work

⚑ Hours to integrate, Agent driven

πŸ”— Brittle, provider-specific code

πŸ”“ Portable, provider-agnostic code

🚫 Hard to switch providers

πŸ”„ Change providers in 1 line


✨ Features

  • πŸ”Œ 100+ Connectors β€” Stripe, Adyen, Braintree, PayPal, Worldpay, and more

  • 🌍 Global Coverage β€” Cards, wallets, bank transfers, BNPL, and regional methods

  • πŸš€ Zero Overhead β€” Rust core with native bindings, no overhead

  • πŸ”’ PCI-Compliant by Design β€” Stateless, no data storage


πŸ—οΈ Architecture

The Prism library is compliant for payment processing by design. It is:

  • Stateless β€” Hence, no PII or PCI data stored

  • Credential free β€” The API keys are never logged nor exposed

  • Payment compliance outsourcing supported β€” You can continue to outsource your PCI compliance to third party vaults, or payment processor without having to handle credit card data.


πŸš€ Quick Start

Install the Prism Library

Start by installing the library in the language of your choice.

Node.js

Python

Java

Add to your pom.xml:

PHP

For detailed installation instructions, see Installation Guide.


Create a Payment Order

Node.js


πŸ”„ Routing between Payment Providers

Once the basic plumbing is implemented you can leverage Prism's core benefit - switch payment providers by changing one line.

One integration pattern. Any service category.

No rewriting. No re-architecting. Just swap the client with rules. Each flow uses the same unified schema regardless of the underlying processor's API differences. No custom code per provider.

You can learn more about intelligent routingarrow-up-right and smart retriesarrow-up-right to add more intelligence. It can help configure and manage diverse payment acceptance setup, as well as improve conversion rates.


πŸ› οΈ Development

Prerequisites

  • Rust 1.70+

  • Protocol Buffers (protoc)

Building from Source


Reporting Vulnerabilities

Please report security issues to [email protected]envelope.


Built and maintained by Juspay hyperswitcharrow-up-right

Last updated

Was this helpful?