Card on file
Use N-Genius Online tokenisation to save a customer's card and offer it as a payment option at their next checkout.
Set up Card on file so your customers can save their card details on your website and pay faster at checkout next time.
The current tokenisation flow supports customer-driven payments from the payment page. The following sequence diagram shows the high-level flow.

Receive the saved card details
When Card on file is enabled for your account, the first successful transaction returns a savedCard block in the API response. This applies to a transaction that uses the primary account number (PAN), expiry date and card security code (CSC).
{
"saveCard": {
"maskedPad": "401200******1112",
"expiry": "2025-04",
"cardholdername": "Mr Tokenisation",
"scheme": "VISA",
"cardToken": "dG9rZWSpemVkUGFuLy92MS8vU0hPV19GSVJTVU1RfNC8vNDAxMjAwcHhncXM0MTExMg=="
}
}Store these details with the customer's stored credentials in your systems, such as their username and password. You use them to identify a returning customer.
Send the saved card with the next order
Send the saved card details when you create the customer's next order.
{
"action": "AUTH",
"amount": {
"currencyCode": "AED",
"value": 100
},
"emailAddress": "[email protected]",
"language": "en",
"billingAddress": {
"firstName": "TT",
"lastName": "Token",
"address1": "221A Baker Street",
"city": "London",
"countryCode": "GB"
},
"savedCard": {
"maskedPan": "401200******1112",
"expiry": "2025-04",
"cardholderName": "Mr Tokenization",
"scheme": "VISA",
"cardToken": "dG9rZW5pemVkUGFuLy92MS8vU0hPV19GSVJTVF82X0xBU1RfNC8vNDAxMjAwcHhncXM0MTExMg=="
},
"description": "Generic Item",
"orderSummary": {
"shipping": {
"currencyCode": "AED",
"value": 1
}
}
}Amounts are in fils, the minor unit of AED. In this example, "value": 100 is AED 1.00 and the shipping "value": 1 is AED 0.01.
Pay with the saved card
Send every field in the savedCard block correctly when you create the order. When you redirect the customer to the payment page, the page offers the option to pay with the saved card.

To complete the order, the customer enters the security code and selects Pay.
Check a card before you rely on itTo confirm a card is valid and active without charging the customer, use Zero-value account verification.
Updated 12 days ago
What’s Next
Contact us to enable Tokenisation

