On this page:
Overview
With Opayo's Token feature, you can ask to save the customer's card number as a reusable token.
The card details remain completely secure on our system and you can use the token when you process the returning customer's purchases. Returning customers need only:
- Sign in to your website.
- Proceed to checkout.
- Select a card to pay with.
- When required, enter the card's CV2.
CV2
The CV2 may not be necessary for all transactions. If a CV2 is not submitted when required then the transaction may fail.
Save a Token
To save the card details as a token for future purchases during the initial Transaction Registration:
- Prepare a Transaction Registration POST as usual.
- Set the TxType to PAYMENT, DEFERRED, or AUTHENTICATE.
- Set CreateToken to 1.
- Update the Credential on File fields.
A Successful Response
You will receive all the data you need to store the card in the card object as a token when the transaction is successful.
You can now reuse the token for this customer’s future transactions.
Reuse a Token
When successfully created and stored, a token can be used for future purchases made by the customer.
Delete a Token
Tokens are easily deleted. Fore example, when your customer deletes their account on your website or replaces the stored card with another.
To delete a token, your server creates and submits a POST to the remove token URL with TxType set to REMOVETOKEN. Opayo will repond with the result of your REMOVETOKEN request.