Case study · Payments architecture

When the shopper is an agent: building agent-initiated payments for a US payment processor

A US payment processor serving mid-sized online merchants, handling over a million transactions a day, started seeing checkout traffic driven by AI agents. Its risk models read it as bots, its disputes process assumed a human clicked buy, and merchants were asking how to accept agent purchases safely. The goal was a proper agent channel: know which agent is acting for which customer, under what limits, and keep the evidence for when something goes wrong.

Case studyPayments · United StatesSumanta Mukhopadhyay9 min read
#fintech#agents#architecture
CASE STUDY · CASE STUDY · PAYMENTS ARCHITECTURE29 Nov 2026 · 15:50 GST
At a glance
SectorPayments · United States
My roleFractional CTO and principal architect
EngagementArchitecture, product definition and delivery leadership
ScopeAgent identity, customer mandates, network tokens, risk scoring, merchant APIs, disputes and evidence, observability
What changed
  • Agent traffic identified as its own channel rather than blocked as bots
  • Every agent payment tied to a customer mandate with limits and expiry
  • Agent purchases using network tokens instead of raw card numbers
  • Dispute cases arriving with the agent, mandate and decision trail attached
  • Merchants able to opt in by product category and limit
Agent registryMandate serviceNetwork tokenisationPayment orchestrationRisk engine with agent signalsMerchant agent APIDispute evidence storeOpenTelemetry context propagation

Anonymised composite. Client names, identifying details and confidential figures are withheld; public facts are cited in the references.

The situation

A US payment processor served mid-sized online merchants, routing over a million card and wallet transactions a day through a payment orchestration layer, a risk engine and a disputes operation. Through the autumn, a growing share of checkouts came from AI agents acting for customers. The risk engine scored them as bots, so some were declined and others slipped through by imitating browsers. When a customer disputed an agent purchase, nobody could say what the agent had been authorised to do.

Why now. Agent shopping moved from demonstrations to production in November 2026: Walmart opened its Agent Gateway to Meta's Muse, with checkout inside the agent conversation, a card stored with the retailer and a spending cap set by the customer1. The card networks had already set direction, with Visa Intelligent Commerce and Mastercard Agent Pay built around tokenised credentials for verified agents2, and both continued building out frameworks for authenticated agents3. Merchants started asking their processor the obvious question: can we accept this safely?

What had to be true

  • Agents identified, not guessed: a registered agent, acting for a known customer.
  • A mandate checked on every payment, independent of what the agent says.
  • No raw card numbers in agents' hands: tokens scoped to the agent and merchant.
  • Risk that understands agents: different signals, not just "bot or human".
  • Disputes resolvable with evidence of what was authorised and what happened.
  • No added latency on the existing human checkout path at over a million transactions a day.

Architecture

Channels
Human checkoutunchangedMerchant agent APIdeclared agent requests
Agent trust
Agent registryverified agent providersMandate servicecustomer, agent, limits, expiryConsent capturecustomer step-up at setup
Payments
Orchestrationrouting and retriesNetwork tokensper agent and merchantRisk engineagent-specific signals
After the sale
Dispute evidence storemandate and decision trailMerchant controlscategories, limits, opt-in
Operations
Tracing with agent contextpropagated end to endChannel metricsapproval, fraud, disputes
A separate agent lane through the same payment core: identity and mandate first, tokens instead of card numbers, evidence kept for disputes.

The data flow, end to end

  1. Set upThe customer authorises an agent once, with limits, through a step-up check
  2. RequestThe agent calls the merchant agent API, declaring itself and the customer
  3. VerifyRegistry confirms the agent; mandate service checks limits, merchant and expiry
  4. PayOrchestration charges a network token scoped to this agent and merchant
  5. ScoreRisk uses agent signals: mandate fit, agent history, basket pattern
  6. RecordAgent, mandate version and decision are stored with the transaction
The mandate is checked by the processor, not trusted from the agent.

The hard part: proving what the customer authorised

Disputes were the deciding problem. A customer who says "I did not buy this" and an agent provider who says "the customer asked for it" cannot both be checked without a record that neither controls. The processor became that record. Each mandate was versioned, every payment stored the mandate version it was checked against, and the decision trail travelled with the transaction into the disputes system.

Keeping that trail intact across dozens of services was an engineering problem in its own right. The team carried agent and mandate identifiers alongside the trace context, so every span in a payment, from the merchant API to the network, could be tied back to the authorisation. OpenTelemetry's context propagation is the mechanism: trace context is passed between services in request headers, so spans in different services join one trace4.

Diagram of two requests passing from a frontend service to a product catalogue service, each carrying a traceparent header so spans in both services share the same trace ID
Context propagation: each request carries its trace context to the next service. The same path carried the agent and mandate identifiers. Source: OpenTelemetry documentation · CC BY 4.0

Never take an agent's word for its own permissions. The mandate lives with the processor, and the agent only ever presents a reference to it.

The approach built on the processor's existing idempotency and orchestration patterns, described in the payments platform case study and idempotent payment pipelines; agent design followed how to design agents that move money and agentic commerce.

How it ran

Product and partnerships
  1. Merchant interviews
  2. Agent provider onboarding terms
  3. Merchant opt-in controls
Payments engineering
  1. Agent registry and mandates
  2. Token scoping and orchestration
  3. Context propagation
Risk and disputes
  1. Agent signals in scoring
  2. Evidence packs for disputes
  3. Channel monitoring
Partnerships defined who could act, engineering built the lane, risk made it safe to grow.
Phase 1See
  • Measure agent-driven traffic
  • Separate from bots
  • Dispute review
Phase 2Identify
  • Agent registry
  • Mandate service
  • Merchant agent API
Phase 3Pay
  • Scoped tokens
  • Agent risk signals
  • Pilot merchants
Phase 4Resolve
  • Dispute evidence
  • Merchant controls
  • Wider rollout
See the traffic, identify it, let it pay, then make disputes resolvable before scaling.

Key decisions and trade-offs

DecisionAlternativeWhy
A separate agent channelTreat agents as bots and blockDeclared agents are easier to secure than disguised ones
Mandates held by the processorTrust agent-asserted permissionsThe party settling disputes must hold the record
Tokens scoped per agent and merchantReuse the customer's card-on-file tokenLimits blast radius if an agent is compromised
Agent-specific risk signalsOne risk model for all trafficAgent baskets and timing look nothing like humans'
Merchant opt-in by categoryAll merchants on by defaultSome merchants' goods are poor fits for agents

What I'd do again, and differently

Again: start from disputes and work backwards; designing the evidence first made every other choice clearer. Differently: agree data-sharing terms with agent providers before building the registry. Several wanted to send far more customer data than the processor needed, and narrowing that late cost time. For merchants weighing their own options, see the agent-ready marketplace case study.

If you run payments in the United States, my work with US companies explains how I approach it, or analyse your challenge and bring the result to a call.

References
  1. 1
  2. 2
  3. 3
  4. 4
    Context propagationOpenTelemetry documentation
FAQ

Common questions

Why not just block AI agents at checkout?

Because customers increasingly use them deliberately, and retailers such as Walmart are opening dedicated agent channels. Blocking pushes agents to scrape and imitate humans, which is worse for fraud detection than identifying them openly.

What is a mandate in agent payments?

A record of what a customer has authorised a specific agent to do: which merchants or categories, spending limits, and how long the permission lasts. The processor checks it on every payment, independently of anything the agent claims.

How do card networks support agent payments?

Visa and Mastercard have both announced programmes, Visa Intelligent Commerce and Mastercard Agent Pay, built around tokenised credentials for verified agents, so agents can pay without holding raw card numbers and customers can set limits.

Keep reading

Related

Open to advisory, fractional CTO & select builds

Let's talk about what you're building.

The fastest route is a free 30-minute call. Prefer to write? Send a message and I'll reply personally within two business days.

Start a conversation

How would you like to reach me?

Book a 30-min callFastest. Pick any open slot on my calendar.→ Write in GmailOpens a pre-filled draft in your browser.→ Use my email appOutlook, Apple Mail or your default client.→

I reply personally within two business days. Time zones from the Americas and Europe to the Middle East and Asia-Pacific.