# See how an AI agent pays, one step at a time

> Set the rules for an AI agent, run five synthetic purchases over x402 and watch each step: the 402, rule check, signature, settlement and ledger entry.

Canonical page: https://finray.tech/tools/agent-payment-playground/
Publisher: Finray Technologies Ltd (finray.tech), unrelated to finray.io
Markets: United States, United Kingdom, European Union
Sources last verified: 2026-11-25

Set the limits, the merchants and the assets an agent may use, then run five purchases. Each step lights up in the scene, with the data it carries. Some purchases pass the rules and some are declined, and you see why.

Checked in your browser. Nothing you type is sent, stored or put in the address bar.

## How it works

An agent that pays over x402 meets a merchant that asks for money, checks the ask against the rules it was given, signs, and gets the resource. Simulation with synthetic data. No blockchain, no real money. The headers are shaped like x402 version 2, so you can read them in a decoder.

| Step | What happens | Where it is written |
| --- | --- | --- |
| 1. Request | The agent asks a merchant for a paid resource. It has not paid yet. | x402 v2 specification |
| 2. 402 | The merchant answers 402 Payment Required. The PAYMENT-REQUIRED header, base64 of JSON, lists what it accepts: scheme, network, amount, asset, payTo and maxTimeoutSeconds. | x402 v2 HTTP transport; x402 v2 specification |
| 3. Rule check | Before the agent signs, the ask is held against the rules the institution set: the asset, the merchant, the limit per payment and the limit per day. This step is the playground's picture of those rules. It is not part of the x402 protocol. | The playground's own rules |
| 4. Signature | The agent signs an authorization with from, to, value, validAfter, validBefore and a nonce, and asks again with the PAYMENT-SIGNATURE header. | x402 exact scheme on EVM; x402 v2 HTTP transport |
| 5. Settlement | The merchant answers 200. The PAYMENT-RESPONSE header carries success, payer, transaction, network and amount. | x402 v2 HTTP transport; x402 v2 specification |
| 6. Ledger and flags | Each approved payment and each declined attempt is written to a ledger with its reason. Example monitoring rules then look at the attempt: velocity, a new merchant, an amount far above the agent's usual. | The playground's own rules |

## The five purchases

The same agent, agent-demo-01, makes five purchases within one minute. They are scripted so that the default rules approve some and decline others. Change the rules and the outcome changes with them.

| # | Merchant | Amount | With the default rules | Example flag |
| --- | --- | --- | --- | --- |
| 1 | Atlas Maps | 0.40 USDC | Approved | None |
| 2 | Borealis Data | 9.00 USDC | Declined: 9.00 USDC is above the per-payment limit of 5.00. | amount above usual |
| 3 | Ember Search | 0.30 USDC | Declined: Ember Search is not on the allowed merchants list. | new merchant |
| 4 | Cirrus Compute | 1.20 EURC | Declined: EURC is not an allowed asset. | None |
| 5 | Delta Weather | 0.25 USDC | Approved | velocity |

## What the playground does not do

Simulation with synthetic data. No blockchain, no real money. Every address, signature and transaction hash is made up. Nothing is sent to a network, nothing is signed, and Finray holds no funds in it.

The flags are examples of the kind of rule XZiel runs. Their thresholds are made up: 5 attempts within 60 seconds, a merchant the agent has not paid before, an amount more than 10 times the agent's usual. Limits are counted in the token's own units, with no currency conversion.

The signature step is not a signature. The headers have the shape of the x402 version 2 objects, with made-up values, so the decoder can read them. Each authorization is valid for 10 minutes, as its maxTimeoutSeconds says.

## Examples

Each button sets the rules above and clears the run. The outcome shown is what the five purchases do under those rules.

### The default rules

- Rules: `Per payment 5.00, per day 12.00. Assets: USDC. Merchants: Atlas Maps, Borealis Data, Cirrus Compute, Delta Weather, Fjord Translate.`
- Result: Approved: purchase 1, purchase 5. Declined: purchase 2, purchase 3, purchase 4.
- Published in: The playground's defaults

### Allow EURC as well

- Rules: `Per payment 5.00, per day 12.00. Assets: USDC, EURC. Merchants: Atlas Maps, Borealis Data, Cirrus Compute, Delta Weather, Fjord Translate.`
- Result: Approved: purchase 1, purchase 4, purchase 5. Declined: purchase 2, purchase 3.
- Published in: Defaults, with EURC ticked

### Allow Ember Search

- Rules: `Per payment 5.00, per day 12.00. Assets: USDC. Merchants: Atlas Maps, Borealis Data, Cirrus Compute, Delta Weather, Fjord Translate, Ember Search.`
- Result: Approved: purchase 1, purchase 3, purchase 5. Declined: purchase 2, purchase 4.
- Published in: Defaults, with Ember Search ticked

### A low daily limit

- Rules: `Per payment 5.00, per day 0.50. Assets: USDC, EURC. Merchants: Atlas Maps, Borealis Data, Cirrus Compute, Delta Weather, Fjord Translate.`
- Result: Approved: purchase 1. Declined: purchase 2, purchase 3, purchase 4, purchase 5.
- Published in: Defaults, with EURC ticked and a daily limit of 0.50

### A strict per-payment limit

- Rules: `Per payment 0.30, per day 12.00. Assets: USDC. Merchants: Atlas Maps, Borealis Data, Cirrus Compute, Delta Weather, Fjord Translate.`
- Result: Approved: purchase 5. Declined: purchase 1, purchase 2, purchase 3, purchase 4.
- Published in: Defaults, with a per-payment limit of 0.30

## Where Finray does this for you

[Corebanq](https://finray.tech/platforms/corebanq/)

AI agents can initiate payments through Corebanq.

The customer institution sets the limits and approvals for those payments itself, in the Corebanq Configurator.

XZiel monitors fiat and crypto transactions in one platform.

[Corebanq](https://finray.tech/platforms/corebanq/) · [XZiel](https://finray.tech/platforms/xziel/)

## Related

- [Agentic payments for banks, EMIs and fintechs](https://finray.tech/solutions/agentic-payments/): What an institution needs when customers let AI agents pay, with human-in-the-loop approvals.
- [x402 for AI agent payments, and where MCP fits](https://finray.tech/intelligence/x402-agent-payments/): How x402 works, where MCP fits and what an institution has to decide.
- [Agent payment protocols tracker](https://finray.tech/intelligence/agent-payment-protocols-tracker/): Who governs each agent payment protocol and what each one standardises.
- [Core banking MCP server: tools and controls](https://finray.tech/notes/core-banking-mcp-server/): What a core banking MCP server exposes to agents, and the controls around it.
- [All Finray tools](https://finray.tech/tools/)

## Sources

Last verified 2026-11-25.

- [x402 specification, version 2](https://github.com/coinbase/x402/blob/main/specs/x402-specification-v2.md)
- [x402 version 2 HTTP transport: the PAYMENT-REQUIRED, PAYMENT-SIGNATURE and PAYMENT-RESPONSE headers](https://github.com/coinbase/x402/blob/main/specs/transports-v2/http.md)
- [x402 exact scheme on EVM: the signed authorization](https://github.com/coinbase/x402/blob/main/specs/schemes/exact/scheme_exact_evm.md)

The rule check, the ledger and the three flags are the playground's own illustration of what an institution could set and see. They are not a statement of what any x402 server or any Finray product does today.
