What is card tokenisation?

Card tokenisation replaces the 16-digit card number with a substitute value, a token, that is tied to one merchant, device or use and that only the card network or issuer can map back to the real card.

Also called card tokenization, card-on-file tokenisation, CoFT, network tokenisation, network tokenization, payment tokenisationUpdated

A card number is valuable because it works almost everywhere. That's also the problem: if a merchant's database of saved cards leaks, attackers can use the numbers at other merchants. Card tokenisation (often spelled tokenization) fixes this by never giving the merchant the real number. The merchant stores a token instead, and the token is only valid in the context it was issued for.

How network tokenisation works

  1. At checkout, the customer chooses to save their card and gives consent.
  2. The merchant's payment aggregator sends a token request to the card network's token service (Visa Token Service, Mastercard MDES, RuPay's equivalent). The issuer approves it, usually after an additional authentication.
  3. The network returns a token, a different 16-digit number bound to that merchant (the "token requestor").
  4. For each later payment, the merchant sends the token plus a one-time cryptogram. The network maps the token back to the real card and passes the payment to the issuer.
  5. When the card is reissued with a new number or expiry, the network updates the mapping. The merchant's token keeps working.

A gateway token (a vault reference like card_7Hd... from Stripe or Razorpay) is different. It points to a card the gateway stores, and only works with that gateway. Network tokens are issued by the card scheme. Whether they can move to another gateway depends on who requested them and on the network's rules, so ask before you sign.

Card tokenisation in India (CoFT)

RBI's card-on-file tokenisation rules took full effect on 1 October 2022. Since then, no one in the card payment chain other than card issuers and card networks may store actual card data. Merchants and payment aggregators had to delete stored card numbers and switch to tokens.

The main points:

  • Tokenisation is optional for the customer and needs explicit consent, with an additional factor of authentication.
  • The customer isn't charged for it.
  • A customer can tokenise one card with many merchants and see or delete tokens through their bank.
  • Merchants may keep the last four digits and the issuer name for tracking and reconciliation.
  • Guest checkout (enter the card every time) remains allowed.

The same tokens are used for device tokenisation, such as card payments from a phone wallet.

Example: a subscription renewal

A streaming app in India charges ₹649 a month. In November the customer's bank replaces the card after a fraud alert, with a new number and expiry.

  • Before tokenisation: the merchant's stored card would fail on the next renewal, the customer would get a "payment failed" email and some would never update it.
  • With a network token: the network updates the token's link to the new card. The renewal is sent with the same token, plus the e-mandate reference that India's recurring payment rules require, and succeeds.

The merchant's database holds only token_ref, last4: 4417, network: VISA and issuer: HDFC Bank. A breach of that table reveals nothing an attacker can charge.

What it does and doesn't do for PCI DSS

Tokens reduce the PCI DSS scope of systems that hold them, because they aren't card numbers. They don't remove PCI DSS: the checkout page that collects the card still matters. Use hosted fields or an iframe, as explained in PCI DSS SAQ A vs A-EP vs D. Tokenisation also doesn't authenticate the customer, which is what 3-D Secure is for.

Our PCI DSS compliance checklist covers token storage alongside the other card data controls.

Any idea in mind? Let's make it real.

Tell us what you're building. You'll hear back from an engineer, not a sales team, usually within one working day.

Book a 30-min call