Subscribe to get high-signal insights on how modern fintech is built.

analysis

Seven Layers Between an AI Agent and Your Money

Agent commerce needs seven infrastructure layers to work, and most of the stack is still missing or contested.

By Alex Kugell ·

Seven layers sit between an AI agent and a completed payment. Identity, authorization, checkout, payment rails, settlement, receipts, disputes. Some have production implementations, others have competing proposals, and a few have nothing at all.

Conferences talk about identity and authorization. Vendors pitch whatever layer their product covers. But if you try to build the full stack from agent identity through settlement through disputes, you hit a specific problem at every layer, and the layers don't connect.

Layer 1: Identity

Before an agent can pay, the merchant needs to know what it is. A human buyer has a name, a card, and a device fingerprint. An agent has none of those. It needs a verifiable identity that travels with the transaction.

Four protocols are converging on this. Visa's Trusted Agent Protocol verifies agent identity per transaction at the point of sale. Mastercard's Agent Pay Ready designation binds identity to the credential itself. Stripe's ACP and Google's UCP each handle identity as part of their checkout flows.

The FIDO Alliance launched a working group in April 2026 to develop authentication standards for agents, building on the same cryptographic foundations as passkeys.

These aren't compatible with each other. Adyen built a universal translator to accept all four simultaneously because no merchant can predict which protocol a given agent will use.

If you can't verify which agent submitted a payment request, the rest of the stack falls apart.

Layer 2: Authentication

Identity establishes what the agent is, but authentication goes further by proving which consumer it represents. When an agent acts on someone's behalf, the payment system needs proof that this specific consumer authorized this specific agent.

3D Secure requires a human to enter a code or approve a push notification. An autonomous agent can't solve that challenge, which breaks the entire SCA flow in regions where it's mandatory, including the EU under PSD2.

Workarounds are shipping. Delegated authentication passes the challenge to the consumer's device before the agent transacts, storing approval for a session or a set of rules. Issuer-domain authentication lets the issuer verify the agent directly through its own protocols, and exemption-based flows use transaction risk analysis to skip the challenge entirely for low-risk agent payments.

None of these are standardized. A merchant accepting agent payments in Europe has to implement all three and figure out which one the issuer supports.

Layer 3: Delegation

The first two layers establish who the agent is and that the consumer approved it. Delegation goes further by defining what the consumer actually authorized the agent to do, and most protocols skip it.

A consumer says "book a flight to Denver under $500, economy class." The agent books a $1,200 business class flight departing at a different time. Both the identity and authentication layers pass, because the agent is who it says it is and the consumer did approve it to transact. But the agent exceeded its mandate.

The gap sits at the protocol level. Every agent payment protocol handles the forward flow, moving money from buyer to seller. None of them bind a receipt back to what was authorized. The receipt proves the payment happened, but nothing in the transaction record captures what the consumer's original instruction was.

AP2's cryptographic mandates are the closest solution. The consumer signs a mandate specifying maximum amount, currency, merchant category, and expiration. The mandate travels with the transaction and becomes evidence if the agent exceeds it. But this only works within Mastercard's network, and adoption is early.

Without a delegation layer, every dispute between a consumer and an agent platform becomes a credibility contest with no protocol-level evidence on either side.

Layer 4: Spending controls

An agent with a $5 per-transaction spending limit can make twenty $5 payments and spend $100. That split attack is the most basic failure mode in agent spending, and most demo policy engines ship with it.

Spending controls for agents need to be enforced outside the agent's own code. An agent with a bug or under adversarial prompt injection can route around software-level checks that run inside its own process. The controls have to live at the policy engine level, checking cumulative spend across rolling time windows, merchant category restrictions, and velocity limits.

Mastercard's Agentic Tokens encode these constraints into the credential. A transaction that exceeds the budget is rejected during network authorization before it reaches the issuer. Visa leaves enforcement to issuers and merchants, trusting the edges to check the rules themselves.

The difference matters. Encoded constraints fail closed because the network rejects the transaction if it violates the rules, while edge-enforced constraints depend on every participant implementing the checks correctly, and any participant that skips them becomes a gap.

Agent Payment Infrastructure Stack
Production
Partial
Unbuilt
7
Disputes
No agent-specific reason codes
Unbuilt
6
Audit Trail
AP2 mandates only (Mastercard)
Unbuilt
5
Checkout & Settlement
Cards + stablecoins (x402)
Production
4
Spending Controls
Agentic Tokens vs edge enforcement
Partial
3
Delegation
No protocol-level mandate standard
Unbuilt
2
Authentication
3 workarounds, none standardized
Partial
1
Identity
4 competing protocols live
Production
Top and bottom builtMiddle missing

Layer 5: Checkout and settlement

The agent has an identity, the consumer authenticated, the delegation is recorded, and spending controls are in place. The money needs a path.

For card-based transactions, checkout looks similar to traditional e-commerce. Stripe's ACP handles checkout through existing card infrastructure with agent-specific metadata. Google's UCP covers discovery and post-purchase flows. These work for transactions in the $10 to $10,000 range where card economics make sense.

Below a dollar, card networks break down. Interchange plus assessment plus processor markup makes a $0.05 transaction economically impossible on card rails. That is why Cloudflare built stablecoin wallets for agents using HTTP 402.

The x402 protocol reported 75.4 million transactions in a 30-day window, averaging about 32 cents each. Agent micropayments are settling on stablecoin rails because card networks were never designed for sub-dollar economics.

Two settlement stacks are emerging in parallel. Cards for larger agent purchases and stablecoins for micropayments. Most agent commerce infrastructure will need to support both.

Layer 6: Audit trail

When something goes wrong with an agent payment, the first question is what the consumer authorized versus what the agent did. The audit trail has to reconstruct the path from instruction to purchase.

Receipts prove payment, but nothing proves authorization. A traditional payment receipt shows amount, merchant, timestamp, and card last four. It doesn't show what the consumer told the agent, what options the agent evaluated, why it chose this merchant, or whether its selection matched the consumer's constraints.

AP2's mandate model creates a chained audit trail. An Intent Mandate captures the consumer's instruction, and a Cart Mandate records the agent's selection. A settlement record then completes the chain. Each step is cryptographically signed, creating non-repudiable evidence. If the Cart Mandate doesn't match the Intent Mandate, the audit trail shows exactly where the agent deviated.

Outside of AP2, the audit trail depends on whatever the agent platform chooses to log. Some platforms log the full conversation, some log only the final transaction, and many log nothing that would survive a dispute investigation.

The six banks that published the Building Trust in Agentic Commerce principles paper called for auditable records of consumer instructions, authentication, intent, and transaction outcomes. But the paper is voluntary and non-binding.

Layer 7: Disputes

When an agent buys the wrong hotel and the consumer files a dispute, the dispute enters a system that was never designed for this failure mode.

No card network has published an agent-specific reason code. The consumer files under "goods not as described," the same code for a damaged package, because the evidence framework assumes a human buyer who can explain what went wrong.

Agent disputes have different failure modes. The agent might have exceeded its delegation, or the delegation might have been poorly defined. The agent might have optimized for the wrong variable, choosing departure time over price when the consumer meant price.

In every case, the merchant filled the order correctly, but the consumer disputes because the agent made the wrong choice and the merchant ends up absorbing the chargeback.

No dispute framework assigns the agent platform as a party. Liability follows the transaction, flowing to the merchant or the issuer, even when the failure originated in the agent's decision-making. Amex announced Agent Purchase Protection in April 2026, and Chargebacks911 launched agent indemnification in October. These are vendor-specific patches that don't answer the systemic question.

The dispute layer is where every gap in the layers below it becomes visible. Without a delegation record there is no evidence, and without an audit trail there is no way to reconstruct what the agent did. If spending controls also failed, the dispute involves an amount the consumer never approved in the first place.

What the stack looks like in November 2026

Identity and checkout have production implementations, with four competing identity protocols live and settlement working through both card rails and stablecoins depending on transaction size. Authentication and spending controls are partially built. Authentication has workaround patterns for the 3D Secure problem, none standardized, and spending controls work within Mastercard's token architecture but depend on edge enforcement everywhere else.

Delegation, audit trails, and disputes are largely unbuilt at the industry level. AP2's mandate model addresses delegation and audit within Mastercard's network, but outside of it these layers depend on whatever the agent platform and the merchant choose to implement on their own.

The stack has production implementations at the top and bottom, while the middle remains open territory. Agent commerce will scale when that middle fills in, because delegation, audit trails, and disputes are where the trust infrastructure for agent transactions will be defined.

Sources

Alex Kugell
Alex KugellAI/ML Engineer, Fintech Infrastructure

Writes Ledger Drift. Engineer building AI systems and financial infrastructure. Open source contributor to x402, ACK, and MPP – agentic payment protocols.

Frequently Asked Questions

What infrastructure does an AI agent need to make a payment?
Seven layers sit between an AI agent and a completed payment. The agent needs a verifiable identity bound to the transaction, authentication that proves who it represents, a delegation record of what the consumer authorized, spending controls enforced outside the agent's own code, a checkout and settlement path that works at sub-cent transaction values, an audit trail that binds what was authorized to what was purchased, and a dispute mechanism designed for agent-specific failure modes. As of November 2026, production implementations exist for identity and checkout, partial solutions exist for authentication and spending controls, and the delegation, audit trail, and dispute layers remain largely unbuilt.
Why can't AI agents use existing payment infrastructure?
Existing payment infrastructure assumes a human buyer. 3D Secure challenges require a person to enter a code. Chargeback reason codes describe human failure modes like goods not as described or services not rendered. Spending limits on credit cards check individual transactions but not cumulative agent behavior across a session. The mismatch runs through every layer of the stack, from how the buyer identifies itself to how disputes are resolved when something goes wrong.
How do Visa and Mastercard handle agent payments differently?
Visa authenticates the agent per transaction through its Trusted Agent Protocol, verifying agent identity at the point of sale but leaving spending constraint enforcement to issuers and merchants. Mastercard encodes spending constraints directly into Agentic Tokens, so a transaction that exceeds the budget, targets a restricted merchant category, or uses the wrong currency is rejected during network authorization before it reaches the issuer. Visa trusts the edges to enforce policy while Mastercard locks policy into the credential itself.
What happens when an AI agent buys the wrong thing?
The dispute enters a system designed for human purchases. No card network has published an agent-specific reason code as of November 2026. A consumer whose agent bought the wrong flight files under goods not as described, the same code used for a damaged package. The evidence requirements assume a human can describe what went wrong. The agent platform is not a party to the dispute. Vendor-specific programs exist, including Amex Agent Purchase Protection and Chargebacks911 AI agent indemnification, but no industry-wide framework assigns default liability to the entity that deployed the agent.
What is the delegation gap in agent payments?
Every agent payment protocol solved who paid but none solved who said the agent could pay at the protocol level. A consumer tells an agent to book a flight under $500. The agent books a $1,200 flight. The receipt proves the payment happened, but nothing in the transaction record binds the agent's action back to the consumer's original instruction. AP2's cryptographic mandates are the closest solution, encoding spending constraints into signed records that create non-repudiable authorization evidence, but adoption is limited to Mastercard's network.

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.

Keep reading

fintechThe KYC Problem Nobody's Solved: Identifying an AI AgentBSA/AML requires knowing your customer, but when the customer is software acting on behalf of a human, nobody agrees on what that means.
fintechWhen Your AI Agent Needs a Bank AccountAn AI agent can browse and negotiate, but it still borrows a human's credit card to pay because it has no financial identity of its own.
ai & mlPlaid Is Becoming the Financial Data Layer for AI AgentsThree agent partnerships, MCP servers for every major LLM provider, and 800 AI companies already building on the network.
View more ›