compliance · 2025-03-31 · 6 min read
Tokenization: why your server should never see a PAN
Modern checkouts swap the card number for a meaningless token at the edge. It shrinks compliance scope, limits breach impact and keeps subscriptions working when cards are reissued.

A tokenization service receives card data directly from the browser, stores it in a hardened vault, and returns a token — an opaque identifier that is useless outside that vault. Your systems keep only the token. Combined with hosted fields, this is what lets a merchant qualify for the lightest PCI DSS self-assessment.
Two kinds of token
- PSP (vault) tokens — issued by your payment provider (Stripe's
tok_…/pm_…, Braintree nonces, Adyen recurring details). Scoped to that provider; see Stripe's token API. - Network tokens — issued by Visa, Mastercard or Amex themselves, bound to a merchant and device. They survive card reissues and typically earn higher authorization rates.
What tokenization buys you
- A breach of your database exposes no card numbers.
- PCI scope collapses to the payment page and token handling.
- Recurring charges work without re-collecting details — and with account-updater services, without interruption when the physical card expires.
- The CVV is never retained, satisfying the hard rule against storing it.
Tokenization is not encryption
Encrypted data can be decrypted with the key; a token has no mathematical relationship to the PAN. That distinction is why regulators treat tokens as out of scope. The Wikipedia article) covers the formal model.
Display-wise you still need the last four digits and brand for the customer's saved-card list — the provider returns those alongside the token, so you never need the full PAN. Follow the masking rules when showing them.

Keywords: tokenization, payment token, network token, vault, PCI scope reduction, card on file, account updater
Frequently asked questions
Is a payment token the same as an encrypted card number?
No. Encryption is reversible with a key; a token is a random reference with no mathematical link to the PAN.
What is a network token?
A token issued by the card network (Visa, Mastercard, Amex) rather than your PSP, bound to your merchant ID and resilient to card reissues.