Compliance

Payment Card Security (PCI DSS)

Advanced

If we touch payment card data, we fall under PCI DSS, a strict standard with real audits and penalties. The most important strategy is to handle as little card data as possible. Let a certified provider (for example, Stripe) take the card details so they never reach our systems. This cuts our obligations sharply. What you do not store, you cannot leak.

PCI DSS governs how cardholder data is processed, stored, and transmitted. The scope of your obligations depends entirely on how much card data your systems touch. The best move is to keep that scope small: use a PCI-compliant payment provider's hosted fields/tokenisation, so raw card numbers go straight to them and we only ever handle a token. That keeps most of PCI scope off our platform.

This connects Secrets/Encryption, Data Classification (cardholder data is highly sensitive), Tokenisation (see Data Masking), and Vendor & Third-Party Risk (the provider's compliance). When in doubt about anything touching cards, ask. PCI is not an area to improvise in.

Minimise what you touch

Card data through our servers // our form posts the PAN + CVV to our API, we forward to the gateway
log.Info($"charging card {pan}"); // and we logged it

We have just pulled our entire platform into PCI scope and logged a card number and CVV: a severe PCI violation and breach. Card data should never have reached our servers, let alone our logs.

Hosted fields and token // provider's hosted field captures the card in the browser -> provider
// our server only ever sees a token:
charge(provider, token, amount); // no PAN/CVV touches us

Raw card data goes straight to the certified provider. We handle a token, keeping the card environment, and most PCI scope, off our systems entirely.

If card data is genuinely in scope

Self-review checklist

Why it matters: PCI DSS is strict and enforced. Mishandling card data means heavy penalties, loss of the ability to take payments, and serious breaches. Keeping raw card data out of our systems through a compliant provider is both the safest and the cheapest path. It cuts our obligations to a fraction and removes the most dangerous data from our hands entirely.