Card tokenization
Use a token in a Payweb payment request in place of card details. Use a single-use Hosted Fields token for the current checkout and a saved-card token for scheduled charges.
- Hosted Fields token lifetime
- 5 minutes
- per Hosted Fields token
- 1 request
- repeat charges on a saved card
- Subscriptions
How card tokenization works
A token is an identifier linked to the card details. How you obtain and use it depends on whether you are taking the current payment or setting up future charges.
Current payment
- The customer enters card details in Payweb fields
- Payweb issues a Hosted Fields token
- The backend submits the token in a payment request
- One request within 5 minutes
Future charges
- The customer agrees to recurring payments
- The backend gets a saved-card token
- The backend submits this token for a new charge
- Charges under the subscription terms
Tokenization and PCI DSS scope
With Hosted Fields, card details go directly from the embedded fields to Payweb. The merchant's backend receives a token and uses it in the payment request.
PCI DSS scope depends on the complete integration. It considers systems that handle card data or can affect its security. Review the data flow and assessment requirements with your acquirer.
How to integrate card tokens
Choose the payment flow
For Hosted Fields, check which requests support the token. For a saved card, agree how the token is issued and where it can be used.
Plan the backend integration
Confirm which identifier to send, how your backend gets the payment status and when to request a fresh token.
Test in the sandbox
Run a payment with a token and check its status. Test what happens when a single-use token expires. If you offer subscriptions, test a saved-card charge as well.
Card tokenization questions
A single-use hostedFieldsToken is valid for 5 minutes. Your backend submits it in a supported payment request. Obtain a fresh token for a new payment.
Subsequent charges need a saved-card token and the customer's consent. How you obtain the token depends on your recurring payments setup.
If the bank requests 3‑D Secure, the customer authenticates with their bank and returns to checkout.
Compatibility depends on the token issuer, where the token can be used and which operations the acquirer accepts. Check portability for the specific connections.
Consider the entire card data flow and the systems that affect its security. Assessment scope and validation requirements depend on the integration.
Discuss payments with card tokens
Tell us where customers enter their card details, whether you need future charges and which acquirers your platform uses.