# How do AI agents pay? Agent payments explained

> AI agents pay within a business's budget, through a shop's checkout, or per request with a stablecoin. The three ways in plain words, and what can go wrong.

Source: https://hashspan.dev/learn/ai-agent-payments

By Selim Aytaç, maintainer · Published Oct 21, 2026

## Short answer

An AI agent pays in one of three ways today. It can pay within a budget and rules a business set up front. It can complete a shop's checkout built for agents. Or it can pay per request with a stablecoin, a digital dollar on a blockchain, when a website answers "pay first". In every case the agent decides when to pay, so the limits and a record of what it paid matter most.

> **Is it safe?** It's as safe as the limits you set. An agent can spend whatever it can reach, so:
> - Set a limit, or approve each purchase.
> - Give it a small amount, not your savings.
> - A crypto payment can't be undone, so the limit matters most.

## How can an AI agent pay for something?

An AI agent is software that acts for you: it searches, fills in forms and, more and more, buys things. Paying is the hard part, because nobody is there to tap "confirm".

Three ways are in use today:

Figure: Three ways an AI agent pays today. 1, a budget set by a business: the business sets a budget and rules, the agent may pay within them, pays for a service, and the network keeps it in the budget, for example Mastercard Agent Pay for Machines. 2, a shop's checkout built for agents: the agent picks what to buy, fills the checkout, the shop takes the payment and stays the seller, for example ACP from OpenAI and Stripe and AP2 from Google. 3, pay per request with a stablecoin: the website answers pay first, the agent signs a payment, asks again with the proof, and gets the answer and a receipt, for example x402 and MPP.

## What are the three ways, side by side?

| Way | What moves | Who sets the limits |
|---|---|---|
| A budget set by a business | Card, bank or stablecoin payments | The business, up front |
| A checkout for agents | The shop's usual payment | The person and the shop |
| Pay per request | A stablecoin, on a blockchain | The agent's wallet and its spend limits |

Each way follows a protocol: a shared set of rules, so programs from different companies can work together.

**A budget set by a business.** With [Mastercard Agent Pay for Machines](https://www.mastercard.com/us/en/news-and-trends/press/2026/october/Mastercard-Agent-Pay-for-Machines-in-action.html), businesses "set the task, permissions and spending limit for the AI agent". The agent then pays only inside them. Mastercard's launch named card, bank account and stablecoin payments.

**A checkout for agents.** The [Agentic Commerce Protocol](https://www.agenticcommerce.dev/) (ACP), maintained by OpenAI and Stripe, lets an agent complete a shop's checkout. The shop stays the seller. Google's [AP2](https://ap2-protocol.org/) records what a person approved as signed "mandates" that the shop and the payment network can check.

**Pay per request.** An API is a service that programs call over the web. A website or API answers [HTTP 402 Payment Required](https://hashspan.dev/learn/http-402-payment-required) with a price. The agent signs a payment in a stablecoin and asks again. It gets the answer and a receipt. Two protocols work this way. Both are open standards. [x402](https://hashspan.dev/learn/http-402-payment-required) is developed by the [x402 Foundation](https://github.com/x402-foundation/x402). [MPP](https://hashspan.dev/learn/x402-vs-mpp), the Machine Payments Protocol, was co-authored by Tempo and Stripe and submitted to the IETF ([governance](https://mpp.dev/governance)).

## What can go wrong?

Money moved by software raises new questions. Three from 2026:

- **Who is asking?** In September 2026, Amazon blocked Meta's Muse shopping agent from its site ([GeekWire](https://www.geekwire.com/2026/amazon-blocks-metas-muse-ai-assistant-in-new-standoff-over-agentic-shopping/)).
- **Banks say no to borrowed passwords.** In October 2026, JPMorgan said it blocks outside AI agents that log in with a customer's bank password ([Fortune](https://fortune.com/2026/10/15/jamie-dimon-ai-agents-meta-muse-jpmorgan/)). Schwab blocks agents it has not approved ([American Banker](https://www.americanbanker.com/news/schwab-blocks-unauthorized-ai-agents-points-clients-to-charley)).
- **An agent used test money it wasn't given.** In a training task, an OpenAI research model used a test crypto wallet that was not meant for it ([OpenAI](https://alignment.openai.com/misalignment-reports/using-a-funded-test-cryptocurrency-wallet-without-authorization/)).

The answers are similar each time. A person sets the limit. The other side can check the approval. And there is a record of what the agent paid.

## Why keep a record of what the agent paid?

Because "the agent says it paid" and "the money moved" are two different facts:

Figure: Why record what the agent paid. The agent's log shows two green ticks: pay_vendor done and withdraw_from_vault done. On the chain, the payment was confirmed, but the withdrawal reverted and nothing moved. Both tools did their job: they sent a transaction and got an id back. Whether the money moved is a second fact, and a trace can show both side by side.

A **trace** is a timeline of everything the agent did, step by step. When a payment lands in that timeline, next to the step that made it, you can answer "did it really pay?" without searching another system. We wrote up this [demo in full](https://hashspan.dev/blog/agent-trace-stops-at-the-tool-call).

## Where can I go from here?

- **For developers, what 402 means with a real exchange:** [HTTP 402 Payment Required](https://hashspan.dev/learn/http-402-payment-required).
- **The two pay-per-request protocols, compared:** [x402 vs MPP](https://hashspan.dev/learn/x402-vs-mpp).
- **New to crypto?** Start [from zero](https://hashspan.dev/learn/start): blockchains, wallets and sending, in short videos.
- **A developer?** Build an agent that pays, on your own machine: the [x402 tutorial](https://hashspan.dev/docs/x402-tutorial).
- **Briefing a team?** This page is the overview. [x402 vs MPP](https://hashspan.dev/learn/x402-vs-mpp) starts with a plain comparison table; the rest of that page is for developers.

## FAQ

### Can an AI agent spend my money without asking?

Only as far as you let it. The payment programs and checkout rules built for agents work with limits or approvals a person sets first. A wallet gives an agent whatever is in it, so keep only a small amount there.

### Why would an agent pay in crypto instead of by card?

For small, frequent payments to services it has no account with. With x402 or MPP, the agent pays per request with a stablecoin, such as USDC, and needs no sign-up or API key (the password a program uses to call a service).

### Can a website tell a payment came from an agent?

Not always. That is one reason some banks and shops block agents that log in with a person's password. The new payment rules name the agent and what was approved instead.

### What is a stablecoin?

A token on a blockchain that is meant to stay worth one unit of a currency, such as one US dollar. USDC is an example.
