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
The Two-Step Pattern
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_idinto the/paymentsAPI (or the Proxy endpoint) from your backend to execute the transaction.
Payment Method Lifecycle
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
Integration Options in This Section
Vault Integration Reference
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?

