What is Hyperswitch and when does self-hosting make sense?
Hyperswitch is an open-source payments orchestration platform from Juspay that puts one API in front of many payment processors. Self-hosting makes sense when you need control over data residency, processor relationships and routing logic, or when orchestration must sit inside an existing PCI DSS environment.
The source repository is licensed under Apache-2.0 and describes Hyperswitch as an open source, composable payments platform with SaaS and self-host options. The core backend services, including the app server, card vault and encryption service, are written in Rust. The README says the platform supports 100+ payment processors out of the box, while other sections of the same README say 120+. Check the connector list against every processor you hold before you commit to the design.
The deployment models page lists Self-Deployed (Enterprise Support), Hosted Offering (SaaS) and Point Solutions. In the hosted offering, Juspay handles PCI compliance entirely. Self-deployed merchants either self-certify PCI compliance or use Juspay's hosted tokenization service. That difference drives most of the architecture work on this page.
An implementation covers processor and method selection, connector setup, routing design, vault and key management, checkout integration, webhooks into order and ledger systems, reconciliation and operations. The project releases roughly monthly on an irregular schedule. The latest release found is v1.131.0, dated November 25, 2026, so plan upgrades as routine work from the first day.
Which payment flows and processors should you map before deploying Hyperswitch?
Write down flows, processors, data paths and staff access before configuring anything.
| Topic | What to map | Why it matters |
|---|---|---|
| Methods and markets | List the cards, wallets, bank transfers and local methods you accept in each country and currency. | This decides which connectors and SDK components the build needs. |
| Processors and acquirers | Record existing contracts, supported methods, settlement currencies and fees for each processor. | Routing rules can only choose among processors you hold accounts with. |
| Flow types | Cover one-time, saved card, recurring and merchant-initiated payments, plus refunds, disputes and payouts. | Each flow has its own vault, mandate and webhook needs. |
| Card data path | State whether raw card data reaches your servers, the Hyperswitch vault, a third-party vault or only processor-hosted fields. | The answer drives PCI DSS scope and the vault design. |
| Ledger and finance | Describe how payment events reach your ledger, which settlement report formats you receive and who reconciles. | It shapes webhooks, reconciliation and reporting. |
| Staff access | Name who changes routing rules, connector credentials and API keys, and which identity provider they use. | It sets Control Center roles and the single sign-on design. |
Which components does a self-hosted Hyperswitch deployment run?
A self-hosted deployment runs several services. Give each one an owner, a scaling plan and a recovery path.
Router
The architecture documentation names the Router as the primary crate where all core payment functionality is implemented. It receives API calls, applies routing, calls connectors and records payments. The repository also lists prism as a unified connector library and decision-engine as the routing control plane. Confirm which of these your chosen release runs as separate services.
PostgreSQL and Redis
PostgreSQL stores customer, merchant and payment data in a master and replica setup. Redis serves as a cache and as the Scheduler's queue. Both hold state, so they need encrypted storage, backups and tested failover. Decide who owns database migrations at each upgrade, and size the replica for your read load.
Scheduler
The Scheduler is a separate app service. A Producer batches due tasks from the database into a Redis queue, and a Consumer takes batches from the queue and executes them. Run it as its own workload, watch queue depth and consumer lag, and test what happens to queued work when Redis restarts.
Card vault
The card vault is a separate Apache-2.0 Rust service with PostgreSQL storage. Applications reach it through a middleware layer, with requests and responses signed and encrypted using JWS and JWE. A custodian key split in two parts, each held by a separate custodian, encrypts and decrypts the AES master key that runs the locker.
SDKs and Control Center
The repository lists web SDK components hyperswitch-web, client-core, react-hyper-js and sdk-utils, and mobile SDKs in Kotlin, Swift, TypeScript and Dart. They render checkout and collect payment details on the client side. Control Center and Control Center Embedded are the dashboards for connectors, routing rules and API keys.
How do connectors, routing rules and retries work in Hyperswitch?
Each connector needs production credentials, payment methods enabled to match the processor's dashboard, and a webhook secret so incoming webhooks can be verified. The go-live checklist says raw card processing must be enabled per connector, which may need a dashboard toggle or a PCI Attestation of Compliance. Keep a connector inventory that records the owner, credential location and enabled methods for every processor. The README points to a hosted sandbox with connector setup, logs, routing rules and test payments, which is a safe place to rehearse before touching production.
Routing rules choose a processor from attributes of the payment, such as method, region or amount, with a fallback order. Agree each rule with the owner of the processor relationship, because a rule changes cost and authorization outcomes for that processor. Keep rules in a register and under change control, with a named approver and a date for each change. Test every branch in sandbox, including the fallback path and the case where no rule matches. Review the register on a schedule, since processor contracts and fees change over time.
The repository lists decision-engine as the routing control plane. Whatever retry or success-based routing logic you turn on, settle the policy first. Agree which decline codes are safe to retry, how reattempts respect card scheme rules, and how many attempts a payment may use. Decide how a retried payment appears in reporting so finance can follow it from the first attempt to the final result. Watch authorization rate per processor before and after each change, so you can tell whether a rule helped or only moved volume.
A missing processor or local method means development against a Rust codebase, since the core backend services are written in Rust. Decide early whether to contribute the connector upstream or maintain it yourself across releases. Releases can carry breaking changes, and the v1.131.0 notes list several, so a private connector adds work at every upgrade. Test it against the processor's sandbox for authorization, capture, refund, webhook and error paths, and record the processor API version it targets.
How should you design the card vault and PCI DSS scope for self-hosted Hyperswitch?
The card data path is the main architectural decision. The options are the self-hosted Hyperswitch card vault, Juspay's hosted tokenization service, a third-party vault, and tokenization at the processor. Each option moves different systems into or out of the cardholder data environment, so choose it before sizing infrastructure.
Juspay handles PCI compliance entirely in its hosted offering, and self-deployed merchants either self-certify or use the hosted tokenization service, according to the deployment models page. When you run the router and vault yourself, those components, the infrastructure under them and the people who operate them fall within your PCI DSS scope. The project's compliance statements do not cover your deployment. The security and compliance guide says Level 1 needs a third-party QSA, while Levels 2, 3 and 4 may be completed by self-assessment. Confirm scope, segmentation and assessment type with your QSA and acquirer before fixing the architecture.
The same guide says to run the card vault in a separate compute environment and storage layer, with independent key management and a key custodian model. It also calls for encryption at rest on all persistent stores including backups and snapshots, TLS 1.2 or higher in transit, least-privilege role-based access, MFA for administrative access and File Integrity Monitoring on binaries and configs. The install guides include the vault, but the go-live checklist says it must be activated by following the card vault deployment steps.
For the vault, plan the custodian key ceremony, where each key share is held, rotation, and which KMS or HSM backs the encryption service in your version. Run the vault in its own network segment, reachable only from the router, and log every access. The guide says PCI DSS requires annual penetration tests for systems in the cardholder data environment and recommends weekly automated scans with tools such as Qualys or Nessus. Put both on the operations calendar.
How do you integrate, reconcile and test a Hyperswitch deployment?
What connects to a self-hosted Hyperswitch?
The checkout connects through the web or mobile SDK. Your backend calls the payments API with idempotent order references. Webhooks feed order management and the ledger, and fraud providers and finance systems connect on the edges. Record which system holds the authoritative state for each payment, so a disagreement between systems has a clear tiebreaker.
How does Hyperswitch reconciliation work with settlement files and the ledger?
Reconciliation compares three sources: bank statements, processor settlement reports and your internal records. Choose two-way or three-way matching for each processor. Decide who works exceptions, how unmatched items age, and who signs off daily totals before they post to the general ledger. DeployOpen sets up reconciliation as part of the implementation.
How do you run a Hyperswitch Docker setup for evaluation?
The README describes a one-click local setup that runs scripts/setup.sh. It detects Docker or Podman and offers three profiles: Standard with the app server and Control Center, Full with monitoring and schedulers added, and Minimal with the app server only. Use it to learn the system. Production runs on Kubernetes with Helm charts or your own manifests.
How do you test routing rules and connectors without live traffic?
The README points to a hosted sandbox where the Control Center, connector setup, logs, routing rules and test payments work without setup. Use it to draft rules, then repeat the tests on your own staging deployment against each processor's sandbox. Test every branch of every rule, including fallbacks, before any rule reaches production.
What should payment lifecycle testing cover?
Cover authorization, capture, voids, refunds, disputes, 3DS challenges, saved cards and recurring charges on processor sandboxes. Add failure cases: processor timeouts, failover, and duplicate or out-of-order webhooks. Record every result, because those test records go to your QSA and your finance team at handover.
How should you handle webhooks and return URLs safely?
Store a webhook secret for every connector so incoming webhooks can be verified. Treat each webhook as possibly duplicated or out of order, and make order updates idempotent. On return URLs, verify the signed payload, amount and status before fulfilling an order. Never fulfill an order from the browser redirect alone.
How do you host, harden and monitor Hyperswitch on Kubernetes?
The README lists Helm charts for AWS, GCP and Azure and a Terraform full-stack deployment in the hyperswitch-suite repository. The Helm repository is Apache-2.0 and provides a hyperswitch-stack chart. The self-hosting documentation covers on-premise deployment and guides for Minikube, AWS, GCP and Azure.
| Area | Plan | Check |
|---|---|---|
| Kubernetes | Deploy with the Helm charts or your own manifests, built from code. The vault ships with the install guides but is activated separately. | Each environment can be rebuilt from the repository. |
| Network edge | Route incoming traffic through a proxy that handles WAF filtering, rate limiting, request validation and DDoS protection. Send all external communication through an outgoing proxy outside the cluster. | Only API and SDK endpoints face the internet, and egress is limited to processor endpoints. |
| Data stores | Run PostgreSQL with a replica, encrypted storage and tested backup and recovery. Configure Redis for both caching and the Scheduler queue. | A database failover under load loses no committed payments. |
| Secrets and defaults | Change every default value for API key fields in the config file, whether or not you use Helm. Keep processor credentials and webhook secrets in a secrets manager. | No default keys remain, and only named staff can read credentials. |
| Control Center access | Use OpenID Connect single sign-on with any provider that supports discovery. Invite users first, since accounts are not auto-created, and manage roles in Hyperswitch. | Only named staff can change routing or credentials, and MFA is enforced at the identity provider. |
| Observability | Print logs for all components and aggregate them in a system such as Grafana Loki. Build a metrics pipeline for application and system performance. Alert on authorization rate per processor, latency, errors and webhook backlog. | A processor outage alerts before customers report it. |
Who owns Hyperswitch operations after go-live?
Payments orchestration touches engineering, payments operations, security and finance. Each team needs a defined role, a named person and a place to escalate.
Platform team
- Runs the cluster, databases and proxies.
- Applies releases and database migrations.
- Tests failover, backups and restores.
- Reads release notes for breaking changes.
Payments operations
- Owns routing rules and connector settings.
- Watches authorization rates per processor.
- Handles disputes and processor escalations.
- Keeps the routing rule register current.
Security and compliance
- Owns vault key custody and access reviews.
- Maintains PCI DSS evidence with the QSA.
- Reviews Control Center roles and sign-in policy.
- Schedules penetration tests and scans.
Finance
- Works reconciliation exceptions.
- Tracks processing costs per processor.
- Signs off settlement totals.
- Follows retried payments in reports.
Hyperswitch implementation questions
Does self-hosting Hyperswitch change our PCI DSS obligations?
Yes, it can. In the hosted offering Juspay handles PCI compliance, while self-deployed merchants self-certify or use Juspay's hosted tokenization service. The outcome depends on your card data path, segmentation and volumes. Confirm scope and assessment type with your QSA and acquirer. DeployOpen supports readiness work but does not issue reports on compliance.
How do Hyperswitch upgrades work, and what is the latest release?
The latest release found is v1.131.0, dated November 25, 2026, and the cadence is roughly monthly but irregular. Its notes list breaking changes, including session inactivity controls, sign-in rate limits and removal of legacy ephemeral-key routes. Read notes first, rebuild custom connectors, test in staging, then roll out with Helm.
Which licenses apply to a self-hosted deployment?
The source repository, the card vault repository and the Helm repository are each licensed Apache-2.0. Check the license of every repository you deploy, including newer standalone services. Third-party vaults, fraud providers and processors carry their own commercial terms, which no open-source license covers.
How does Hyperswitch Control Center SSO work?
Control Center SSO uses OpenID Connect with the authorization code flow and works with any provider that supports discovery. Okta is listed as fully supported. The email claim is mandatory. Invite users under Settings then Team first, because accounts are not auto-created. Roles are managed in Hyperswitch, and MFA and password policies live at the identity provider.
How does Hyperswitch compare with relying on one processor, such as Stripe, for orchestration?
A single processor needs no orchestration layer. Hyperswitch pays off when you hold accounts with several processors and want one API, routing rules and a fallback order across them. Routing can only choose among processors you have contracts with, so map those contracts, fees and methods before deciding.
Which Hyperswitch deployment model should we choose?
The deployment models page lists Self-Deployed with Enterprise Support, Hosted Offering (SaaS) and Point Solutions. Self-deploy when data residency, processor control or an existing PCI DSS environment requires it. Expect your own compliance and operations work in return, as covered in the vault and ownership sections above.
What affects project scope and what do you receive at handover?
Effort depends on the number of processors and payment methods, whether card data is vaulted in your environment, custom connector needs, the checkout channels, reconciliation sources, availability targets and the state of your PCI DSS program.
DeployOpen maps your payment flows, designs routing and vault architecture, deploys and hardens Hyperswitch in your infrastructure, configures connectors and webhooks, integrates checkout and ledger, sets up reconciliation and monitoring, and tests the payment lifecycle.
Handover includes data flow diagrams for your QSA, the routing rule register, connector inventory, key custody procedure, failover and upgrade runbooks, and test records.
Sources and further reading
- Hyperswitch source repository (Apache-2.0) ↗
- Hyperswitch architecture documentation ↗
- Hyperswitch on-premises go-live checklist ↗
- Hyperswitch Card Vault repository ↗
- Hyperswitch releases ↗
- Hyperswitch self-hosting documentation ↗
- Hyperswitch Helm repository ↗
- Hyperswitch security and compliance guide ↗
- Hyperswitch deployment models ↗
- Hyperswitch Control Center SSO guide ↗

