Vault-Then-Pay
Vault a payment method first, then use the token to execute payments via Server-to-Server API — giving you granular control over the payment lifecycle
Last updated
Was this helpful?
Vault a payment method first, then use the token to execute payments via Server-to-Server API — giving you granular control over the payment lifecycle
Choose this path when you want to use the SDK exclusively for vaulting/storing card details. The actual payment is then executed via S2S API calls from your backend using the resulting payment_method_id token.
If you want payment and vaulting to happen together in a single SDK flow, see Pay-Then-Vault.
Vault — Capture card details using the Vault SDK or the Server-to-Server API. This generates a payment_method_id.
Pay — Pass the payment_method_id into the /payments API (or the Proxy endpoint) from your backend to execute the transaction.
The payment_method_id is a unique, reusable token that maps a customer_id to a specific payment instrument (card, wallet, bank account). The same instrument from the same customer always resolves to the same ID.
123
Visa ending in 4242
PM1
123
Mastercard ending in 1111
PM2
456
Visa ending in 4242
PM3
123
PayPal (user@email.com)
PM4
For the full SDK and API setup guides used in this flow, see:
Vault SDK Integration — React and Vanilla JS step-by-step
Server-to-Server Vault Tokenization — direct API tokenization for PCI-certified backends
Vault Configuration — API key generation and dashboard setup
Last updated
Was this helpful?
Was this helpful?

