juspay / hyperswitch
An open source payments switch written in Rust to make payments fast, reliable and affordable
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing juspay/hyperswitch in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Summary (README)
Preview- What Can I Do with Hyperswitch?
- Quickstart (Local Setup)
- Cloud Deployment
- Hosted Sandbox (No Setup Required)
- Why Hyperswitch?
- Architectural Overview
- Our Vision
- Community & Contributions
- Feature Requests & Bugs
- Versioning
- License
- Team Behind Hyperswitch
Hyperswitch offers a modular, open-source payments infrastructure designed for flexibility and control. Apart from our Payment Suite offering, this solution allows businesses to pick and integrate only the modules they need on top of their existing payment stack â without unnecessary complexity or vendor lock-in.
Each module is independent and purpose-built to optimize different aspects of payment processing.
<h3> Learn More About The Payment Modules </h3> <details>-
Cost Observability
Advanced observability tools to audit, monitor, and optimize your payment costs. Detect hidden fees, downgrades, and penalties with self-serve dashboards and actionable insights.
Read more -
Revenue Recovery
Combat passive churn with intelligent retry strategies tuned by card bin, region, method, and more. Offers fine-grained control over retry algorithms, penalty budgets, and recovery transparency.
Read more -
Vault
A PCI-compliant vault service to store cards, tokens, wallets, and bank credentials. Provides a unified, secure, and reusable store of customer-linked payment methods.
Read more -
Intelligent Routing
Route each transaction to the PSP with the highest predicted auth rate. Reduce retries, avoid downtime, and minimize latency while maximizing first attempt success.
Read more -
Reconciliation
Automate 2-way and 3-way reconciliation with backdated support, staggered scheduling, and customizable outputs. Reduces manual ops effort and increases audit confidence.
Read more -
Alternate Payment Methods
Drop-in widgets for PayPal, Apple Pay, Google Pay, Samsung Pay, Pay by Bank, and BNPL providers like Klarna. Maximizes conversions with seamless one-click checkout.
Read more
Quickstart
<h3> Local Setup via Docker </h3># One-click local setup
git clone --depth 1 --branch latest https://github.com/juspay/hyperswitch
cd hyperswitch
scripts/setup.sh
<details>
<summary><strong>This script: </strong></summary>
- Detects Docker/Podman
- Offers multiple deployment profiles:
- Standard: App server + Control Center
- Full: Includes monitoring + schedulers
- Minimal: Standalone App server
- Provides access links when done
If you need further help, check out our video tutorial.
đ After setup, configure a connector and test a payment.
</details> <h3>Hosted Sandbox (No Setup Required)</h3>Hyperswitch offers a fully hosted sandbox environment that requires no setup. You can explore the Control Center, configure payment connectors, and test payments directly from the UI.
<a href="https://app.hyperswitch.io"> <img src="https://github.com/juspay/hyperswitch/blob/main/docs/imgs/try-the-sandbox.png?raw=true" height="35"> </a> <details> <summary><strong> What you can do in the Hosted Sandbox</strong></summary>- Access the full Control Center
- Configure payment connectors
- View logs, routing rules, and retry strategies
- Try payments directly from the UI
You can deploy to AWS, GCP, or Azure using Helm or CDK scripts. Fastest path:
Click to deploy via AWS:
<a href="https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=HyperswitchBootstarp&templateURL=https://hyperswitch-synth.s3.eu-central-1.amazonaws.com/hs-starter-config.yaml"> <img src="https://github.com/juspay/hyperswitch/blob/main/docs/imgs/aws_button.png?raw=true" height="35"> </a> <details> <summary><strong>Cloud Deployment Instructions</strong></summary>- Click the AWS deployment button above to launch the stack.
- Follow the guided steps in the AWS Console (approx. 30â45 mins).
â This setup provisions Hyperswitch on your cloud account using CloudFormation.
đ For full instructions and Helm-based deployments, check out the
<a href="https://docs.hyperswitch.io/hyperswitch-open-source/deploy-on-kubernetes-using-helm">Cloud Install Guide</a>.
Why Hyperswitch?
Hyperswitch is a commercial open-source payments stack purpose-built for scale, flexibility, and developer experience. Designed with a modular architecture, Hyperswitch lets you pick only the components you needâwhether itâs routing, retries, vaulting, or observabilityâwithout vendor lock-in or bloated integrations.
Built in Rust for performance and reliability, Hyperswitch supports global payment methods (cards, wallets, BNPL, UPI, Pay by Bank), exposes smart routing and retry logic, and provides a visual workflow builder in the Control Center. Whether you're integrating a full payment suite or augmenting an existing stack with a single module, Hyperswitch meets you where you are.
<strong>âLinux for Paymentsâ</strong> â Hyperswitch is a well-architected reference for teams who want to own their payments stack.
We believe in:
-
<strong> Embracing Payment Diversity:</strong> Innovation comes from enabling choiceâacross payment methods, processors, and flows.
-
<strong> Open Source by Default:</strong> Transparency drives trust and builds better, reusable software.
-
<strong> Community-Driven Development:</strong> Our roadmap is shaped by real-world use cases and contributors.
-
<strong> Systems-Level Engineering:</strong> We hold ourselves to a high bar for reliability, security, and performance.
-
<strong> Maximizing Value Creation:</strong> For developers, customers, and partners alike.
-
<strong> Community-Driven, Enterprise-Tested:</strong> Hyperswitch is built in the open with real-world feedback from developers and contributors, and maintained by Juspay, the team powering payment infrastructure for 400+ leading enterprises worldwide.
Contributing
We welcome contributors from around the world to help build Hyperswitch. Whether you're fixing bugs, improving documentation, or adding new features, your help is appreciated.
Please read our contributing guidelines to get started.
Join the conversation on Slack or explore open issues on GitHub.
<a href="#feature-requests"> <h2 id="feature-requests">Feature requests & Bugs</h2> </a>For new product features, enhancements, roadmap discussions, or to share queries and ideas, visit our GitHub Discussions
For reporting a bug, please read the issue guidelines and search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.
<a href="#versioning"> <h2 id="versioning">Versioning</h2> </a>Check the CHANGELOG.md file for details.
<a href="#copyright-and-license"> <h2 id="copyright-and-license">Copyright and License</h2> </a>This product is licensed under the Apache 2.0 License.
<a href="#team-behind-hyperswitch"> <h2 id="team-behind-hyperswitch">Team behind Hyperswitch</h2> </a>The core team of 150+ engineers building Hyperswitch. Keep up the great work! đ„
<a href="https://github.com/juspay/hyperswitch/graphs/contributors"> <img src="https://contributors-img.web.app/image?repo=juspay/hyperswitch" alt="Contributors"/> </a>