Blog

PCI Compliance for AI Companies:
What Developers Need to Know

June 10, 2026 · 10 min read Compliance

If your AI application accepts payments, you're subject to PCI DSS (Payment Card Industry Data Security Standard). There's no exemption for startups, no grace period for MVPs, and no exception because you "only use Stripe." PCI applies to every entity that stores, processes, or transmits cardholder data — and the definition of "transmits" is broader than most developers realize.

The good news: for most AI companies, PCI compliance is manageable. The bad news: AI introduces compliance risks that don't exist for traditional software companies — risks around training data, agent access to payment information, and logging practices that can inadvertently capture card data. This guide covers what you need to know.

What Is PCI DSS and Why It Applies to AI Companies

PCI DSS is a set of security standards created by Visa, Mastercard, American Express, Discover, and JCB. If you accept cards from any of these networks, you must comply. The standard covers how you handle cardholder data: primary account numbers (PANs), expiration dates, CVVs, and cardholder names.

"But I use a payment processor that handles all the card data," you might say. True — and using a processor significantly reduces your compliance scope. But it doesn't eliminate it. Even if card numbers never touch your servers, PCI still applies to the web pages that host the payment form, the servers that redirect to the processor, and any system that could influence the payment transaction. You're always in scope to some degree.

For AI companies specifically, PCI matters because:

The 4 PCI Compliance Levels

PCI compliance requirements scale with your transaction volume. Most AI startups are Level 4 (the lightest requirements), but growth can push you into higher levels faster than you expect.

LevelAnnual TransactionsRequirementsTypical For
Level 4Under 20,000 e-commerce or under 1M totalSAQ + quarterly vulnerability scanEarly-stage AI startups
Level 320,000 to 1M e-commerceSAQ + quarterly vulnerability scanGrowing SaaS with moderate billing
Level 21M to 6M totalSAQ + quarterly vulnerability scan by ASVScaled AI platforms
Level 1Over 6M totalAnnual on-site audit by QSA + quarterly ASV scanEnterprise AI infrastructure

A key nuance: "e-commerce transactions" means card-not-present (online, API-based). Since AI products are almost exclusively card-not-present, you hit the lower e-commerce thresholds, not the higher "total transaction" thresholds. An AI startup doing 25,000 API-billed charges per year is Level 3, not Level 4.

SAQ Types Explained

The Self-Assessment Questionnaire (SAQ) is how most AI companies demonstrate compliance. But there are multiple SAQ types, and using the wrong one is a compliance violation in itself.

SAQ A — Fully Outsourced

For merchants who fully outsource all payment processing. Card data is entered on the processor's page (hosted checkout), and your systems never touch, see, or influence the payment form. This is the shortest SAQ — about 22 questions.

Applies if: You redirect users to a hosted checkout page (like Stripe Checkout or PayPal) and they return to your site after payment. Your site doesn't host any payment form elements.

SAQ A-EP — Partially Outsourced (E-Commerce)

For merchants whose website hosts payment form elements (even via iframe) but doesn't directly receive card data. The processor's JavaScript or iframe captures the card details, but your page is the context in which the form renders.

Applies if: You use an embedded payment form (Stripe Elements, Braintree Drop-in, etc.) on your own page. Card data goes directly from the browser to the processor — your server never sees it — but your page could theoretically be compromised to capture the data (e.g., via XSS). About 139 questions.

SAQ D — Full Scope

For merchants who directly handle card data on their servers. If raw card numbers pass through your backend at any point — even briefly, even in memory — you're SAQ D. This is the most comprehensive assessment, with 329 questions and significant infrastructure requirements.

Applies if: Your server receives, processes, or stores raw card numbers. Almost no AI startup should be in this category. If you are, you're probably doing something wrong architecturally.

Tokenization is not encryption. Encryption transforms card data into ciphertext that can be reversed with a key. If you hold the decryption key, you're still in scope for SAQ D. Tokenization replaces card data with a meaningless token that has no mathematical relationship to the original number. The token is useless without the processor's systems. This is why tokenization reduces your PCI scope and encryption doesn't.

How Tokenization Reduces Your PCI Scope

Tokenization is the single most important architectural decision for PCI compliance. Here's how it works in practice:

  1. The user enters their card number in a form element hosted by your processor (an iframe, a JavaScript component, or a mobile SDK).
  2. The card data goes directly from the user's browser to the processor's servers. It never touches your infrastructure.
  3. The processor returns a token — a random string like tok_a1b2c3d4e5 — that represents that card.
  4. You store the token in your database and use it for all future charges. Your systems never hold, see, or transmit the actual card number.

With tokenization, your PCI scope drops from SAQ D (329 questions) to SAQ A-EP (139 questions) or even SAQ A (22 questions), depending on how you render the payment form. The token is worthless outside the context of your processor relationship — an attacker who steals your token database gets nothing usable.

AI-Specific Compliance Considerations

Here's where PCI compliance for AI companies diverges from the standard guidance. These are the risks that your QSA (Qualified Security Assessor) might not think to ask about, but that can break your compliance nonetheless.

Card Data in Training Sets

If your AI model is trained on customer data — support tickets, chat logs, transaction records, emails — there's a risk that card numbers, expiration dates, or CVVs are embedded in that training data. A model that has "learned" card numbers from training data is technically storing cardholder data, even though it's encoded in model weights rather than a database row.

The mitigation: scrub all training data for PCI-relevant patterns before it enters your training pipeline. Use regex patterns to detect and redact 15-16 digit sequences that pass Luhn validation, 3-4 digit CVV patterns adjacent to card numbers, and expiration dates in MM/YY format. This should be an automated step in your data pipeline, not a manual review.

Agent Access to PANs

If you're building AI agents that handle payments, the agent's context window might include card data. A customer support agent that can "look up the last four digits of your card" needs careful scoping — does the underlying API return only the last four, or does it return the full PAN with masking applied at the display layer? If the full PAN is in the API response, even if the agent's UI only shows the last four, the agent's memory/context has the full number.

Design agent APIs so they never return full PANs. The truncated version (last four digits) should be what the API returns, not what the display layer masks.

Logging and Data Retention

AI applications tend to log aggressively — request/response payloads, model inputs/outputs, debugging traces. If any of these log streams capture card data (even accidentally, such as a customer pasting their card number into a chat input), your log storage becomes part of your PCI scope.

Implement log scrubbing that runs before data hits your logging infrastructure. Filter for card number patterns, and either redact them or reject the log entry entirely. This applies to application logs, API gateway logs, model inference logs, and any observability platform (Datadog, Splunk, etc.) that ingests your data.

Data Retention Policies

PCI DSS requires that cardholder data be deleted when no longer needed for business purposes. AI companies often retain data indefinitely for model improvement. If any retained dataset contains cardholder data (even tokenized data in some interpretations), you need a documented retention policy that specifies what's kept, why, and when it's purged.

Building a Compliant Architecture

Here's a practical checklist for building a PCI-compliant AI application. The goal: minimize what touches card data, and protect everything that does.

What Should Touch Card Data

What Should NOT Touch Card Data

Infrastructure Controls

Common Mistakes That Break Compliance

These are the mistakes we see most often with AI companies:

  1. Logging full API request/response payloads that include card data from customer-facing inputs. Even if your payment form is tokenized, a chat input or support ticket might contain a card number that a customer typed in plain text.
  2. Using card data as a feature in ML models. Transaction amount, merchant category, and time of purchase are fine as model features. Card number, even hashed, is not. Hashing is not tokenization — a hash of a card number can be brute-forced because the input space (valid card numbers) is relatively small.
  3. Storing tokens without access controls. Tokens are lower risk than raw card data, but they're still credentials. Treat your token store with the same access controls as any sensitive data.
  4. Forgetting about the developer environment. If developers pull production data (including tokens or card data) into local development environments for debugging, those laptops are now in PCI scope. Use synthetic test data in non-production environments.
  5. Not updating your SAQ when your integration changes. You started with hosted checkout (SAQ A), then switched to embedded forms (SAQ A-EP), but never updated your SAQ. You're now non-compliant.
  6. Ignoring third-party risk. Every third-party service that touches or could influence your payment flow is part of your PCI scope. That includes your CDN, your analytics provider, and any JavaScript you load on payment pages. If a third-party script is compromised, it could capture card data from your embedded payment form.
  7. No incident response plan. PCI requires a documented plan for what happens when (not if) a security incident occurs. Most startups skip this until they need it. Write the plan before you need it.

How AI Payware Handles PCI for You

AI Payware is a PCI Level 1 certified service provider. When you process payments through us, the PCI burden shifts almost entirely to our infrastructure:

The goal is simple: you focus on building your AI product, and we make sure the payment layer is compliant by default. If you're evaluating how to embed payments in your AI application, starting with a PCI-compliant foundation saves you from retrofitting compliance later.

Related: How to Embed Payments in Your AI Application · Agentic Commerce: How AI Agents Are Reshaping Payments · AI Payware vs Stripe

Ready to process payments without the PCI headache?

Get your Merchant ID and start processing payments on PCI Level 1 certified infrastructure. Tokenization, compliance guidance, and ASV scans included.

Get Your Merchant ID → Talk to sales: (470) 523-7702