Vault Standalone with Third-Party Vault
Connect third-party vaults to store cards with Hyperswitch SaaS orchestration
Overview
Through Hyperswitch, merchants can add external vault providers such as VGS, HashiCorp, and Voltage, leveraging their SDKs to collect and tokenize cards. This ensures flexibility in vault selection while maintaining compliance, security, and seamless token management across multiple payment processors. Additionally, we also support other extended features such as:
Network Tokenization — Merchants can configure Network Tokenization through either Juspay as TSP or use the External Vault as TSP, ensuring flexibility and control over token provisioning
Card Forwarding & Receiving — To seamlessly transfer tokenized data across third-party endpoints, enabling effortless PSP migration
Hyperswitch Unified Checkout SDK
Cards are collected via the Hyperswitch Unified Checkout SDK and sent to the Hyperswitch server, which tokenizes them in an third-party vault. When processing payments, the Hyperswitch server retrieves the raw card details using the vault token and forwards the complete payment request to the PSP.

Hyperswitch SDKs for Card Collection and vaulting with thrid-party vault
Key Highlights
Merchants using Juspay Hyperswitch SaaS can still integrate a third-party PCI-compliant vault. This setup is ideal for merchants who already have existing token infrastructure (e.g., VGS, Tokenex and more).
Combines the scalability of SaaS orchestration with third-party vault flexibility.
Configuration
To integrate with the Hyperswitch Vault and third-party vault, you'll need to configure your API credentials and profile settings.
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). Use this key in the
Authorization: api-key=<YOUR_VAULT_API_KEY>header for all Vault API calls.

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. This ID is required for API calls that need to specify which merchant profile to use.

Step 3: Enable Vault Connector
Navigate to Vault Processor — In the left-hand navigation menu, select Connectors > Vault Processor.
Configure Vault Provider — Add your third-party vault provider credentials and configuration.

Enable in Payment Settings — Navigate to Developers > Payment Settings, under Vault tab, enable the external vault and choose the vault processor from the dropdown, then click Update.

Payment Flows
In this approach, the Hyperswitch SDK is used to capture card details, but card storage and tokenization are handled by a third-party vault. Hyperswitch backend orchestrates payments using tokens issued by the third-party vault.

Payment flows with third-party vault integration
New User Payments Flow
Load the Hyperswitch Payments SDK via Payments Create API request. The end-user enters their payment credentials for the selected payment option
The Payment Confirm API request containing the payment method is sent to the PSP from Hyperswitch
Once the PSP responds with the outcome
approvedordeclinedalong with the PSP token, Hyperswitch then proceeds to store and tokenize the card.The card is stored in third-party vault, which returns a
vault_tokenUpon receiving the
vault_token, Hyperswitch generates apayment_method_id. Apayment_method_idis a versatile token and connects a lot of entities together likecustomer_id,psp_token,vault_tokenThis
payment_method_idis returned to the merchant via webhooks
Repeat User Payments Flow
In a repeat-user payment, the Hyperswitch SDK will load the stored payment methods of the customer based the
customer_idsent as part of the Payments Create API request.The end-user can select the desired payment option and add their
CVVThe SDK sends the Payment Confirm API request when the user hits
PayThe Hyperswitch backend resolves the
payment_method_idto identify availablevault_tokenHyperswitch can use the
detokenizeflow to obtain the raw card in exchange for thevault_token. It will then send payload with the raw card credential to the payment provider or PSP downstream.
Merchant Initiated Transaction (MIT) Flow
The merchant can perform the MIT or Recurring transactions using
payment_method_id
Last updated
Was this helpful?

