Consumer AI Agents Should Never Hold Payment Credentials
Giving an AI agent your card number is the PCI-DSS credential storage mistake repackaged for a new decade.
If someone handed you a house key and said "give this to the robot, it'll let itself in when it needs to," you'd ask why the robot needs a key at all. Can't you just unlock the door when the robot asks?
That's the question the payments industry should be asking about AI agent credentials right now, and mostly isn't.
I think giving a consumer AI agent access to raw payment credentials is a mistake, and not one that can be justified as a necessary tradeoff during a transition period. The payments industry made the same mistake when it let every merchant store card numbers in their own databases, and it took PCI DSS a decade and billions in breach costs to partially fix.
The agent credential conversation is heading down the same path, and the alternative already exists.
The credential storage lesson we already learned
The payments industry spent the 2000s learning what happens when you distribute card credentials to every endpoint that needs to process a payment. TJX stored 45.7 million card numbers in its systems and lost them all in 2007. Heartland Payment Systems lost 130 million card numbers in 2008. The entire PCI DSS framework exists because the industry's original architecture put raw credentials in too many places.
The fix took years. Tokenization replaced raw card numbers with scoped references, and point-to-point encryption kept credentials out of merchant systems.
The principle was simple: don't put the credential where it can be stolen. Put a reference to the credential where it needs to be used, and keep the credential itself locked in a vault.
Now the industry is building agent commerce, and the early instinct is to give agents credentials again. An agent needs to buy something, so it gets a card number or a stored payment token that it can present at checkout. The agent becomes another endpoint holding something valuable, and the credential distribution problem returns in a new form.
Why agents are worse credential holders than merchants
A merchant system that stores card numbers is bad enough. An AI agent that holds credentials is a worse target than any merchant POS system.
First, agents process unstructured input from multiple sources. A merchant's POS terminal accepts structured transaction messages in a defined format. An agent reads web pages, processes natural language instructions, parses merchant catalogs, and interprets user requests.
Every one of those input channels is a potential vector for prompt injection. An attacker who embeds malicious instructions in a product description could, in theory, instruct the agent to exfiltrate the credentials it holds.
Second, agents are designed to act autonomously. A merchant system waits for a customer to initiate a transaction. An agent initiates transactions on its own, based on its interpretation of user intent. If the agent holds credentials and misinterprets its instructions, or is manipulated into misinterpreting them, it can spend money without anyone checking.
Third, agents communicate externally by design. The PCI Security Standards Council's October 2026 guidance on AI in payment environments specifically warns against combining three properties in one system: access to sensitive payment data, the ability to communicate externally, and exposure to unrestricted input from untrusted sources. That describes most consumer AI agents exactly.
BLIK showed the alternative in September
BLIK's pilot transaction in Poland demonstrated that agents don't need credentials at all.
A consumer opened their banking app, defined the product they wanted (a hand cream from the Your KAYA store), set the spending limit (PLN 19.99), and authorized the payment in advance. When the agent detected the product was back in stock, it completed the purchase through PayU. The agent never held a card number, CVV, or billing address. It held a reference to a pre-authorized payment consent.
The credential stayed in the banking app and the authorization stayed with the consumer. The agent operated within boundaries that were defined before the transaction happened.
BLIK's model has a constraint: it works when the consumer knows the product and the merchant in advance. It doesn't handle open-ended shopping where the agent picks the merchant. But within its scope, it solves the credential problem completely.
The card networks are building the right direction, mostly
Mastercard's Agentic Tokens move in the right direction. The raw card number stays in Mastercard's Digital Enablement Service. The agent gets a scoped token bound to a specific policy: spending limit, merchant categories, expiration. The network checks the policy during authorization and rejects transactions that fall outside it.
The agent never holds the credential, and the token it holds is constrained and revocable. If the token is compromised, revoking it doesn't affect the underlying card.
Visa's Trusted Agent Protocol takes a different approach. It verifies the agent's identity cryptographically per transaction, using signatures that merchants can validate. But Visa delegates policy enforcement to merchants and issuers rather than encoding it into the credential itself.
Both are better than handing the agent a card number. Mastercard constrains what the agent can do with the credential while Visa verifies that the agent is who it claims to be. The gap is on Visa's side: verifying identity doesn't prevent the agent from exceeding its authority if the merchant or issuer doesn't enforce limits.
The PCI SSC sees it coming
The PCI Security Standards Council published "Security Considerations for AI Systems" in October 2026. It's guidance, not a requirement.
The guidance recommends that AI systems with access to cleartext cardholder data should require explicit human approval for actions involving that data. It says AI systems should not handle unprotected high-impact secrets, including passwords and cryptographic keys. And it says PCI scoping should consider an AI system's deployment, isolation, and access to account data.
Read together, the implication is that if your agent touches card data, your entire agent infrastructure is in PCI scope. Every model, every prompt, every data pipeline the agent touches becomes subject to PCI DSS requirements. That's a compliance surface area that most agent platforms aren't designed to handle and shouldn't need to.
The simplest way to keep agent infrastructure out of PCI scope is to keep card data out of agent infrastructure.
The position
| Model | Agent holds | Credential lives in | Enforcement | Constraint |
|---|---|---|---|---|
| Pre-authorized consent BLIK | Payment reference | Banking app | Consumer-defined limits | Known merchant + product |
| Scoped tokenization Mastercard Agentic Tokens | Constrained token | MDES vault | Network authorization | Card network adoption |
| Agent-native protocol Agent Commerce Kit | Cryptographic identity | No card credential | Programmatic authorization | Limited merchant adoption |
I think the industry should adopt a default: consumer AI agents do not hold payment credentials. Not card numbers, not CVVs, not stored payment tokens that can be presented at arbitrary merchants.
Agents should hold one of three things instead.
A reference to a pre-authorized payment consent, like BLIK's model. The credential stays in the banking app, and the agent operates within boundaries the consumer defined in advance.
A scoped, revocable token with network-enforced constraints, like Mastercard's Agentic Tokens. The agent can transact within the policy encoded in the token, and the network rejects anything outside it.
Or a cryptographic identity on a protocol that doesn't use card credentials at all, like the Agent Commerce Kit on stablecoin rails. The agent pays with programmatic authorization and machine-readable receipts, and card infrastructure never enters the picture.
Each model has tradeoffs. Pre-authorized consent is limited to known merchants. Scoped tokens depend on the card networks building and enforcing the right constraints. Stablecoin protocols have limited merchant adoption.
None of them are perfect.
But all three share one property: the agent doesn't hold the credential. That property alone eliminates the largest attack surface in agent commerce and keeps agent infrastructure out of PCI scope.
The agent commerce window is still early enough to get the credential architecture right from the start.
Sources
- PCI SSC Publishes Additional Guidance on Securing AI in Payment Environments - PCI Security Standards Council press release, October 7, 2026
- PCI SSC calls for human approval of AI agent actions involving cardholder data - Help Net Security coverage of the AI guidance, October 9, 2026
- CSA Research Note: PCI SSC AI Security Guidance - Cloud Security Alliance analysis of PCI SSC AI guidance and agent scoping implications
- First pilot BLIK transaction completed independently by an AI agent - BLIK official press release on the September 2026 autonomous agent payment pilot
- First BLIK transaction in agentic commerce - PayU coverage of the BLIK pilot transaction processing details
- PPRO Partners with BLIK to Enable Agentic Commerce - PPRO partnership announcement for wider agent payment support, August 12, 2026
- Mastercard Unveils Agent Pay - Mastercard official announcement of Agentic Tokens and Agent Pay program, April 2025
- Mastercard Agent Pay Explained - Eco technical explainer on Agentic Tokens, MDES integration, and consent binding
- Visa Trusted Agent Protocol Specifications - Visa developer documentation for TAP cryptographic signatures and agent verification
- AI Principles: Securing the Use of AI in Payment Environments - PCI SSC blog post on AI security principles for payment environments
- TJX Data Breach - FTC case on TJX Companies data breach, 45.7 million card numbers compromised

Writes Ledger Drift. Engineer building AI systems and financial infrastructure. Open source contributor to x402, ACK, and MPP – agentic payment protocols.
Frequently Asked Questions
Built by Trio, a fintech-native engineering partner helping teams build the next generation of financial technology and infrastructure.
Subscribe to Ledger Drift for high-signal insights into how modern fintech is built, from systems to code to teams.