Architecture Overview
Core Components
Hyperswitch uses the following components to deploy and manage a payment stack:
Hyperswitch App
The Hyperswitch App Server is the core engine for processing payments. It offers full support for various payment flows, including:
Core Operations: Authorization, authentication, voids, captures, refunds, and chargeback handling.
Post-Payment Management: Robust handling of disputes and reconciliations.
Routing Flexibility:
Success-rate-based routing
Rule-based routing
Volume distribution
Fallback strategies
Intelligent retries using error-code-specific flows
Extensibility: Connects with external fraud risk management (FRM) tools, 3DS authentication providers and queuing of refunds, webhooks and recurring payments.
The hyperswitch-app is dockerized with two sub-components -
i) hyperswitch-router -
Responsible for managing and coordinating different aspects of the payment processing system. When a payment request is received, it goes through the Router, which handles important processing and routing tasks.
(ii) hyperswitch-scheduler -
Automates periodic deletion of card information and notifies merchants of API key expiry. Consists of two sub-components -
Hyperswitch-producer - Retrieves tasks scheduled by the router and batches them together in a job queue
hyperswitch-consumer - Retrieves task batches from the queue and executes them
Hyperswitch Web
A JavaScript based frontend SDK for inclusive, consistent and customizable payment experience, unifying checkout experience across platforms:
Platform Support: Available for Web, Android, and iOS.
Multi-Method Support: Handles cards, wallets, BNPL, bank transfers, and more.
Flow Adaptability: Supports the nuances of different PSPs’ payment flows.
Saved Payment Methods: When integrated with the locker, the SDK automatically displays stored cards or other saved instruments for returning users.
Hyperswitch Card Vault
A PCI-compliant Vault SDK to collect and store card data securely, ensuring sensitive information never touches your systems -
Tokenizes cards across multiple payment processors through a single unified API.
Generates Network Tokens to optimize payment operations and reduce costs with automatic network token creation and updates, powered by Juspay’s certified Network Token Requestor capabilities.
Hyperswitch Control Center
The Control Center is a no-code interface to manage and monitor your entire payment stack:
Workflow Management: Configure smart routing, retries, 3DS invocation, fraud checks, and surcharge logic through a visual interface.
Operational Controls:
Trigger and track refunds and chargebacks
View PSP-agnostic transaction logs for quick debugging
Insights and Analytics: Access detailed reports and metrics on success rates, payment drop-offs, retry performance, and more.
Optional (For PCI-SSS):
Hyperswitch Encryption Service
A lightweight performant service to encrypt/ decrypt data, key management and manage key rotation.
Production Deployment Blueprint
A typical production deployment blueprint of Hyperswitch looks like the following diagram.
It includes the 5 critical application components mentioned above along with non-functional services such as monitoring services, event and log management service, storage service, encryption service, load testing service which will be explained during the installation and configuration process.

The next sections talk about the setup and deployment of the requisite infrastructure and platform to deploy Hyperswitch.
Last updated
Was this helpful?

