Self-hosted Orchestration with SaaS Vault
Self-host Hyperswitch orchestration while using SaaS Hyperswitch Vault for PCI compliance
Deployment Model: Merchant self-hosts Hyperswitch Payment Orchestration Layer
PCI Scope: Managed by SaaS Hyperswitch Vault
Overview
In this deployment model, merchants self-host the Juspay Hyperswitch orchestration layer on their own infrastructure while using SaaS Hyperswitch Vault for all PCI DSS responsibilities. Sensitive cardholder data (PAN, CVV, expiry) is stored and managed by Hyperswitch's PCI-compliant SaaS Vault, never touching the merchant's servers.
This architecture gives merchants full control over orchestration logic, routing rules, and business configurations while completely eliminating the burden of achieving and maintaining PCI DSS Level 1 compliance in-house.
Why This Model?
PCI Compliance
Fully managed by SaaS Hyperswitch Vault
Hosting Independence
Merchant retains complete control of the Hyperswitch orchestration deployment
Sensitive Data Exposure
Raw card data never enters the merchant's environment
Token Portability
payment_method_id unifies vault_token + psp_token + customer_id for cross-platform use
Operational Simplicity
No need to manage HSMs, key rotation, or cardholder data environments
Network Tokenization
Automatic provisioning and lifecycle management of network tokens
Key Benefits
Zero PCI Scope for Orchestration: Your self-hosted orchestration layer operates completely outside PCI scope
Full Orchestration Control: Customize routing rules, retry logic, and payment workflows
Managed Vault Infrastructure: Hyperswitch handles vault scaling, security, and compliance
Seamless Integration: Simple API integration between your orchestration layer and SaaS Vault
Cost-Effective: Avoid infrastructure costs for PCI-compliant vault hosting
Integration Steps
SDK Integration
The merchant loads the Hyperswitch Unified Checkout SDK, which embeds the SaaS Hyperswitch Vault SDK to collect card information for tokenization via SaaS Hyperswitch Vault.
New User Payment Flow
The merchant loads the Hyperswitch Payments SDK via a Payments Create API request from their self-hosted Hyperswitch backend which embeds SaaS Hyperswitch Vault SDK.
The end user enters their card details directly into the Hyperswitch Vault SDK's secure fields.
The SDK tokenizes the card via SaaS Hyperswitch Vault and returns a
payment_method_idalong with card metadata (last four digits, card brand, expiry).The SDK sends a Payment Confirm API request to the self-hosted Hyperswitch backend.
The self-hosted Hyperswitch backend processes the payment using the
payment_method_idand sends the transaction to the PSP via SaaS Hyperswitch Vault Proxy.The PSP responds with
approvedordeclinedand sends back PSP token ifsetup_future_usageisoff_session.
Repeat User Payment Flow
The Hyperswitch SDK loads stored payment methods using the
customer_idfrom the Payments Create API request.The end user selects a saved card and optionally enters CVV.
The SDK sends a Payment Confirm API request with the
payment_method_id.The self-hosted Hyperswitch backend resolves the
payment_method_idto identify the associated SaaS Hyperswitch Vault Token.The payment is processed by sending the transaction to the corresponding PSP via SaaS Vault Proxy.
Merchant-Initiated Transaction (MIT) Flow
The merchant triggers an MIT or Recurring transaction using the
payment_method_id.The self-hosted Hyperswitch backend resolves the
payment_method_idto identify the associatedpsp_token.The payment is processed by sending the transaction to the corresponding PSP as a MIT.

Configuration
Step 1: Generate API Key
Access Dashboard — Log into the Hyperswitch Control Centre.
Navigate to API Keys — In the left-hand navigation menu, select Developers > API Keys.
Create Key — Click Create New API Key.
Secure Storage — Copy the generated key immediately and store it securely (it will not be shown again).

Step 2: Access Profile ID
Navigate to Payment Settings — In the left-hand navigation menu, select Developers > Payment Settings.
Copy Profile ID — Locate and copy your Profile ID from the Payment Settings page.

Step 3: Enable Vault Connector
Navigate to Connectors — In the left-hand navigation menu, select Connectors.
Add Vault Connector — Search for Hyperswitch Vault and click Connect.
Configure Credentials — Enter your API Key and Profile ID.
Enable Connector — Toggle the connector to Enabled status.


Step 4: Configure Self-Hosted Backend
Configure your self-hosted Hyperswitch backend to connect to the SaaS Hyperswitch Vault:
Set the vault endpoint in your Hyperswitch configuration to point to
https://api.hyperswitch.ioConfigure your API key and Profile ID in the orchestration layer
Test the connection by creating a test payment method token
For detailed self-hosting setup instructions, refer to the Self-Hosting Guide.
Key Concepts
payment_method_id
payment_method_idA universal, portable token generated by Hyperswitch that serves as the single reference for a stored payment method. It connects:
customer_id
The Hyperswitch customer identifier
vault_token
The token issued by SaaS Hyperswitch Vault representing the stored card
psp_token
The token issued by the PSP after a successful transaction
This abstraction allows merchants to:
Switch PSPs without re-collecting card data
Use a single identifier across all payment flows (first-time, repeat, MIT/recurring)
Maintain data portability across different deployment models
Comparison: Self-Hosted Orchestration Models
Orchestration Hosting
Merchant
Merchant
Merchant
Vault Hosting
Merchant
Hyperswitch SaaS
Third-Party (VGS, TokenEx)
PCI Scope
Merchant (Level 1)
Hyperswitch
Third-Party Provider
Infrastructure Cost
High
Medium
Medium-High
Orchestration Control
Full
Full
Full
Setup Complexity
High
Low
Medium
Network Tokenization
Manual Setup
Automatic
Depends on Provider
Security Considerations
TLS Everywhere: All communication between your orchestration layer and SaaS Vault uses TLS 1.2+
API Key Security: Store API keys securely using environment variables or secrets management
Network Isolation: Consider using VPC peering or private endpoints for enhanced security
Webhook Verification: Always verify webhook signatures for
payment_method_idcallbacksRegular Updates: Keep your self-hosted orchestration layer updated with the latest Hyperswitch releases
Use Cases
This deployment model is ideal for:
Mid-Size Businesses: Companies wanting orchestration control without PCI burden
Multi-Region Operations: Organizations needing regional orchestration with centralized vault
Custom Payment Logic: Businesses with complex routing and retry requirements
Compliance-Conscious Teams: Organizations wanting to minimize PCI scope while maintaining control
Next Steps
Configure vault integration with SaaS Hyperswitch Vault
Integrate the Hyperswitch SDK for payment collection
Set up webhooks for payment notifications
Related Documentation
Last updated
Was this helpful?

