Primary account number (PAN)

The primary account number (PAN) is the long number on a payment card, up to 19 digits and usually 16, that identifies the issuer and the cardholder's account, and is the core piece of cardholder data that PCI DSS requires merchants and providers to protect.

Also called: PAN, card number, primary account number, full card number

Updated

On this page4 sections

How is a card number structured?

Under the ISO/IEC 7812 standard, the PAN is made up of the issuer identification number, an individual account identifier and a check digit, with a maximum length of 19 digits. The issuer identification number, the BIN, used to be six digits and moved to eight digits in the 2017 revision of the standard. The last digit is calculated with the Luhn algorithm, which lets a checkout catch most typing errors before the number is sent.

Why does it matter?

The PAN is what fraudsters want and what security rules are built around. Anyone who stores, processes or transmits it falls under PCI DSS, and the cost of compliance grows with every system that touches it. As an illustrative example: a store that receives card numbers on its own servers has its web servers, databases, logs and backups in PCI scope. If customers enter cards in a provider’s hosted checkout and the store only receives tokens, most of those systems leave scope.

How should a PAN be handled?

As little as possible. Keep it out of logs, emails and support tickets, mask it on screens to the minimum digits a task needs, and replace it with a token wherever a reference is enough. The BIN and the last four digits are usually all that support, routing and reporting need.

Where does Omno use it?

Customers enter card numbers in Omno’s hosted checkout or in Card Fields on the merchant’s own checkout, and card data goes to Omno’s PCI DSS compliant environment, so the merchant’s systems receive tokens and transaction details instead of PANs. Card attributes such as the BIN and issuing country can be used in routing rules, and saved cards are stored as tokens at the platform level.

Frequently asked questions

How many digits of a card number can be shown?

PCI DSS treats the first six and last four digits as the baseline maximum when a PAN is displayed, and only staff with a business need may see more. The PCI Security Standards Council's truncation guidance allows some other formats depending on the PAN's length and the card brand, for example keeping the first eight digits of some 16-digit PANs when the number is truncated for storage.

Is a token the same as a PAN?

No. A token replaces the PAN in storage and in payments. A PSP or vault token is a reference that only works with that provider. A network token has the same format as a card number but is restricted to one merchant or device and used with a cryptogram, so it is useless if stolen on its own.

Sources

3 references
  1. ISO/IEC 7812, Wikipedia
  2. What are acceptable formats for truncation of primary account numbers?, PCI Security Standards Council
  3. PCI DSS, PCI Security Standards Council
esc
↑↓ to move ↵ to open All results