Compliance

A PCI compliance checklist for the SAQ you actually file

Most PCI compliance checklists are the 12 requirements of PCI DSS read out in order. That's the SAQ D checklist, and if you take payments through a hosted page or an iframe it's mostly not yours. The list that applies depends on which Self-Assessment Questionnaire you file, so this one starts there, then lists what each SAQ has you do, with the card data material from chapter 17.

This is engineering guidance, not legal advice. Your acquirer decides your validation requirements, and they are the ones to confirm your SAQ type with.

A PCI compliance checklist is only useful once you know your SAQ (Self-Assessment Questionnaire), because the SAQ decides which requirements you answer. An SAQ A merchant answers 27 of them. An SAQ D merchant answers all of them. Same standard, very different afternoon.

Step 1: confirm which SAQ you file

The short version, from the PCI Council's SAQ Instructions and Guidelines (PCI SSC):

Your checkoutSAQRequirements
Payment links or a fully hosted store, no website of yours involvedSAQ A14
Your site redirects to the processor's payment pageSAQ A27
Your site embeds the processor's payment form in an iframeSAQ A27
Your site builds the form or loads scripts that run it, card data goes browser to processorSAQ A-EP139
Card data reaches your servers, or anything elseSAQ DAll of them

The whole decision, with the official eligibility criteria and the Attestation of Compliance, is in SAQ A vs SAQ A-EP vs SAQ D. What puts a system in scope at all is in PCI scope. Your acquirer has the final word on which SAQ you use.

The SAQ A checklist (redirect or iframe)

These are the 27 requirements in SAQ A for PCI DSS v4.0.1, revision 1, grouped by what you actually do. The SAQ notes that Requirements 2, 6, 8 and 11 apply to the web server hosting the page that redirects to, or embeds, your processor's payment form (PCI SSC, SAQ A r1).

Before you start: the eligibility criteria

  • You only take card-not-present payments (online, mail or phone).
  • Every element of the payment form reaches the customer's browser "only and directly" from your PCI DSS compliant processor.
  • You've confirmed your processor is PCI DSS compliant for the services you use.
  • You've confirmed your site "is not susceptible to attacks from scripts that could affect the merchant's e-commerce system(s)". For an iframe this is real work; for a redirect, PCI FAQ 1588 says the criterion doesn't apply (PCI SSC). How to meet it is in PCI DSS 4.0.1.

Your web server (Requirements 2, 6 and 8)

  • 2.2.2 Change the password on every vendor default account you use, and remove or disable the ones you don't. That includes the CMS, the hosting control panel and anything bought as a cloud subscription.
  • 6.3.1 Have a process for hearing about new vulnerabilities and ranking them, with high-risk and critical ones identified.
  • 6.3.3 Install patches for critical vulnerabilities within one month of release.
  • 8.2.1, 8.2.2, 8.2.5 Give everyone a unique login, allow shared accounts only as a documented, approved exception, and revoke leavers' access immediately.
  • 8.3.1, 8.3.5, 8.3.6, 8.3.7 Authenticate every user. Passwords start as a unique value and get changed on first use, are at least 12 characters with letters and numbers (8 if the system can't take 12), and can't repeat any of the last four.
  • 8.3.9 If a password is the only factor, change it at least every 90 days, or analyse the account's security posture dynamically. MFA takes this one off the list.

Scanning (Requirement 11)

  • 11.3.2 Get an external vulnerability scan at least once every three months from a PCI SSC Approved Scanning Vendor (ASV), and rescan until it passes.
  • 11.3.2.1 Scan again after any significant change, fixing anything scored 4.0 or higher by CVSS. This one doesn't need an ASV, just a qualified, independent tester.

Your providers and your plan (Requirement 12)

  • 12.8.1 Keep a list of every third-party service provider that touches card data or could affect its security, with what each one does.
  • 12.8.2 Have written agreements in which those providers acknowledge responsibility for the card data they handle. The SAQ is explicit that their Attestation of Compliance, a statement on their website or a responsibility matrix doesn't count as that acknowledgment.
  • 12.8.3 Do due diligence before you sign up a new provider.
  • 12.8.4 Check each provider's PCI DSS compliance status at least once every 12 months.
  • 12.8.5 Record which requirements each provider manages, which you manage, and which you share.
  • 12.10.1 Write an incident response plan: who does what, who tells the card brands and your acquirer, how you contain it, and how you recover.

Only if you keep paper with card numbers (Requirements 3 and 9)

  • 3.1.1, 3.2.1 Have a retention policy for it, and check every three months that anything past retention is gone.
  • 9.4.1, 9.4.1.1, 9.4.2, 9.4.3, 9.4.4, 9.4.6 Lock it up, classify it, track it when it leaves the building, get management sign-off to move it, and cross-cut shred, incinerate or pulp it when you're done.

No paper? Those eight are Not Applicable. Fully hosted with no website of yours in the flow? Requirements 2.2.2, 6.3.1, 6.3.3, the eight Requirement 8 items and the two scans are Not Applicable as well: 27 - 13 = 14, the Council's count for that case.

Then file it

  • Complete the SAQ and the Attestation of Compliance, signed by an executive officer, and send both, with your ASV scan reports, to whoever asked for them, usually your acquirer (PCI SSC, SAQ A r1).

For the iframe criterion: start with a CSP

For an embedded payment form, the first of FAQ 1588's two routes is to protect the page yourself with techniques like those in Requirements 6.4.3 and 11.6.1 (PCI SSC). The standard's own guidance for 6.4.3 lists Content Security Policy and subresource integrity among the ways to do that. A minimal CSP for a page that embeds Stripe Elements, using the directives Stripe publishes for Stripe.js (Stripe):

from flask import Flask, render_template, request

app = Flask(__name__)

# Stripe's published directives for Stripe.js, plus your own origin.
# Every other script on this page has to earn a place in this list.
CSP = "; ".join([
    "default-src 'self'",
    "script-src 'self' https://js.stripe.com https://*.js.stripe.com",
    "frame-src https://js.stripe.com https://*.js.stripe.com https://hooks.stripe.com",
    "connect-src 'self' https://api.stripe.com",
    "report-uri /csp-reports",
])


@app.get("/checkout")
def checkout():
    resp = app.make_response(render_template("checkout.html"))
    resp.headers["Content-Security-Policy"] = CSP
    return resp


@app.post("/csp-reports")
def csp_reports():
    # A blocked script on the payment page is an incident until proven otherwise.
    report = request.get_json(force=True, silent=True) or dict()
    alert_security_team("csp-violation", report.get("csp-report", report))
    return "", 204

Add Stripe's https://maps.googleapis.com entries only if you use the Address Element with your own Maps key, and Link's *.link.com entries if you use Link. alert_security_team is yours to write. The other route, written confirmation from your processor, and what Stripe does and doesn't say about it, is covered in Stripe PCI compliance.

What SAQ A-EP adds

SAQ A-EP is for a site that never receives card data but "does affect the security of the payment transaction", and the Council puts it at 139 requirements against SAQ A's 27 (PCI SSC). For SAQ A-EP, every requirement that refers to the cardholder data environment applies to your website. The two that change your engineering work most:

  • 6.4.3 Authorize every script that runs on the payment page, assure each one's integrity, and keep an inventory with a written reason for each.
  • 11.6.1 Run a change- and tamper-detection mechanism on the payment page's scripts and security-impacting HTTP headers, at least weekly or at the frequency your targeted risk analysis sets.

Both have been mandatory since 31 March 2025 (PCI SSC). They're explained in PCI DSS 4.0.1.

Where SAQ D begins

SAQ D is "all PCI DSS requirements", and it's where you land if your website accepts card data or you store it electronically (PCI SSC). Stripe puts that at "more than 300 security controls" (Stripe). There's no checklist shortcut at that point: the checklist is the standard, and the first item on it is a scope document under Requirement 12.5.2. If you're there by accident, moving card collection into a hosted page or iframe is usually cheaper than the checklist.

Every SAQ assumes you know what card data is, so you can say you don't store it. What counts, and what never to log. From chapter 17.

What Counts as "Card Data" (The Stuff That Will Ruin Your Day)

PCI DSS divides sensitive data into two categories: dangerous and apocalyptically dangerous.

Cardholder Data - The Crown Jewels: the full card number, or PAN (15 to 19 digits, and storing it in any form you can turn back into the full number puts you in scope; a properly truncated number like the last four doesn't), the cardholder name as it appears on the card, the expiration date (yes, even innocent-looking MM/YY counts), and service code data from the magnetic stripe.

Sensitive Authentication Data - The Nuclear Material: the CVV/CVC code (3-4 digits, never store this), PIN verification data, full magnetic stripe track data, and EMV chip cryptograms.

PCI DSS explicitly prohibits storing CVV/CVC codes (card verification values) after payment authorization completes - there are no exceptions to this rule. CVV data must never be stored in logs, databases, backups, or any system regardless of encryption. Violations can result in termination of payment processing privileges, card-brand fines, and a mandatory forensic investigation that you pay for. The brands fine your acquirer under schedules they don't publish, and your merchant agreement lets the acquirer pass those fines on to you, so read that agreement for what you've signed up to. Systems found logging CVV codes even accidentally face mandatory forensic investigation and potential processor termination. Build input validation that explicitly strips CVV from all logs and debug output.

CVV codes are the special case: PCI explicitly forbids storing them after authorization, full stop. We've seen developers get fired for building systems that "accidentally" logged CVV codes. Don't be that developer.

from datetime import date
from decimal import Decimal

# Safe to store (not PCI data)
safe_data = {
    'transaction_id': 'txn_12345',
    'amount': Decimal('29.99'),  # Money is never a float: Decimal or integer minor units
    'currency': 'USD',
    'last4': '1234',             # Only last 4 digits
    'brand': 'visa',             # Card brand
    'country': 'US',             # Issuing country
    'funding_type': 'credit',    # Credit/debit/prepaid
    'timestamp': date(2024, 1, 15),
}

# NEVER store this (PCI data)
dangerous_data = {
    'card_number': '4111111111111111',  # Full PAN - PCI violation
    'cvv': '123',                       # CVV - Must NEVER be stored
    'expiry_month': '12',               # Expiry - PCI sensitive
    'expiry_year': '2030',              # Expiry - PCI sensitive
    'cardholder_name': 'John Smith',    # Cardholder name - PCI sensitive
}

The cheapest checklist is the one you never qualify for. From chapter 17.

Do You Ever Need to Store Card Data? (No)

Short answer: No.

Slightly longer answer: Still no.

The answer you're looking for: Here are the only reasons we've ever seen that weren't just developers making their lives harder:

legitimate_reasons = {
    # 1. You are a payment processor yourself
    'payment_processor': {
        'valid': True,
        'requirements': ['PCI Level 1', 'QSA Assessment', 'Dedicated Team'],
        'cost': 'A compliance program, not a line item',
        'note': 'Only if this is your core business',
    },

    # 2. You need to process payments offline
    'offline_processing': {
        'valid': True,
        'requirements': ['Encryption at rest', 'Limited retention', 'Audit trail'],
        'examples': ['Flight payments', 'Remote locations'],
        'note': 'Minimize storage time',
    },

    # 3. Regulatory requirements (rare)
    'regulatory': {
        'valid': True,
        'examples': ['Some government contracts', 'Specific industries'],
        'requirements': ['Legal review', 'Compliance team', 'Risk assessment'],
        'note': 'Get legal approval first',
    },

    # 4. Common bad reasons (don't do these)
    'bad_reasons': {
        'Better user experience': 'Use tokens instead',
        'Faster checkout': 'Use saved payment methods',
        'Analytics': 'Use anonymized data',
        'Customer service': 'Use last 4 digits only',
        'Backup': 'Payment processors are more reliable than you',
    },
}

Questions

What is on a PCI compliance checklist?

It depends on your SAQ. An SAQ A merchant with a redirect or iframe checkout answers 27 requirements: vendor default passwords, patching, unique logins and password rules on the web server, quarterly ASV scans, managing third-party providers, an incident response plan, and paper handling if any. SAQ D merchants answer every requirement in PCI DSS.

How many requirements are in SAQ A?

27 for a merchant whose site redirects to or embeds a PCI DSS compliant processor's payment page, and 14 for a merchant that is fully outsourced with no website of its own in the payment flow, according to the PCI Council's SAQ Instructions and Guidelines for v4.0.1.

Do SAQ A merchants need quarterly vulnerability scans?

Yes, if your website redirects to or embeds the processor's payment form. SAQ A includes Requirement 11.3.2, an external scan at least once every three months by an Approved Scanning Vendor, and 11.3.2.1, a scan after any significant change.

Does SAQ A require MFA?

SAQ A includes Requirement 8.3.1 (authenticate every user) but not the multi-factor requirements. If passwords are the only factor, Requirement 8.3.9 says change them at least every 90 days or analyse account security posture dynamically, and MFA removes that obligation.

How many requirements are in SAQ A-EP and SAQ D?

The PCI Council's SAQ Instructions and Guidelines put SAQ A-EP at 139 requirements and SAQ D for merchants at all PCI DSS requirements.

What the book adds

The rest of chapter 17

  • Scope reduction with tokenization, in code
  • The v4.0.1 changes that caught e-commerce teams out
  • Vaults, network tokens and encryption at rest
  • Access control and audit logging past the questionnaire
  • KYC, AML, 3D Secure and GDPR

30-day money-back · Instant PDF and EPUB

All 42 chapters