How an agentic payment works, step by step

Agentic payments, explained: page 2 of 7

Every agentic payment has the same parts: a person, an agent, something the agent pays with, a seller, and a payment rail that carries the money until it arrives. This page follows a payment through them for each of the two kinds described on What an agentic payment is: an agent buying from a seller for a person, and software paying software as it goes. Each system does it a little differently; the steps below are the common shape.

The parts

Buying from a sellerYouSet limits once; a tokenstands in for your cardThe agentPicks a purchase withinyour limitsThe sellerTakes the order and asksfor approvalNetwork and bankApprove in seconds; themoney moves days latertoken, limitsorder, tokenapprove?Paying per useThe agentHas a wallet and a limitThe serviceReplies 402 with a price,then deliversFacilitatorChecks the payment andcompletes itBlockchainRecords it; final inseconds or minutesasks402: pricepayscheckcomplete
The two kinds side by side. In both, settlement (the money arriving) comes last: days later for a card payment, seconds or minutes on a blockchain.

Kind 1: an agent buying from a seller

The train ticket on the first page is this kind.

  1. Setting up. Once, you connect a payment card to the agent's service. Instead of handing over your card number, the card network issues a token for that agent, and you set limits: how much, where, until when. Visa describes this as consumers setting "spending limits and conditions"; Mastercard says agents are first "registered and verified".
  2. Shopping. The agent searches, compares and picks a purchase that fits your instruction.
  3. Checking permission. The purchase is checked against what you allowed. In AP2 (the Agent Payments Protocol), that permission is a signed record called a mandate: either limits set in advance for the agent to act alone, or one finished basket that you approved.
  4. Checkout. The agent sends the order and a payment credential to the seller, through a checkout protocol such as the Agentic Commerce Protocol or the Universal Commerce Protocol, or through the seller's own checkout. The seller stays the seller: it decides what it sells and handles the order.
  5. Approval. The seller's payment company asks the card network and your bank to approve the payment, as for any card payment. This takes seconds.
  6. Delivery. The seller confirms the order, and the agent passes you the confirmation and the receipt.
  7. Settlement. Over the following days the money moves from your bank to the seller's. A card payment can still be disputed under the card's rules; how those rules apply to purchases an agent made is one of the Open problems.

Kind 2: software paying software, as it goes

  1. Setting up. The agent is given a way to pay, usually a wallet holding stablecoins, and a spending limit.
  2. Asking. The agent asks a web service for something: a page, some data, a calculation.
  3. "402 Payment Required". The service replies with the web's 402 code and a payment request: the price, the currency and how to pay. The Machine Payments Protocol calls this request a "Challenge".
  4. Paying. The agent's wallet signs a payment for exactly that amount, and the agent sends its request again with the payment attached.
  5. Checking. The service checks the payment, either itself or through a facilitator: a service that checks and completes payments on a blockchain for it, so it does not have to run that machinery itself.
  6. Delivery. The service sends what was asked for, sometimes with a receipt.
  7. Settlement. The payment is recorded on the blockchain and becomes final, within seconds or minutes depending on the network.

x402, the Machine Payments Protocol and L402 all follow this shape. They differ in the networks and currencies they support (L402 uses Bitcoin over the Lightning Network; the Machine Payments Protocol also accepts cards this way) and in who maintains them: see The rails today.

Where the person comes back in

In both kinds, the limits are what let the agent act without asking you each time. Most systems also let you step back in: to approve one purchase on your phone, to change the limits, or to be asked when a purchase falls outside them. How much an agent may do alone, and when it must ask, is set by you and by the system you use; it is not yet the same from one system to the next.

Next: The rails today

Sources

All pages: Agentic payments, explained

Corrections: mblake@everydayai.link