Choosing a payment gateway for AI agents
An AI agent payment gateway lets software pay or get paid without a person filling in a checkout form; for card payments, the big providers now have agent programmes (Stripe, Visa Intelligent Commerce, Mastercard Agent Pay), and Google's AP2 adds proof of what the user approved. For per-request payments by agents with their own wallets, x402 in stablecoins is the common choice. Which you need depends on whether the money is a person's card or the agent's own wallet.
Start with one question: whose money is it?
- A person's card or bank account, spent by their shopping agent: you need card-network or bank rails, plus strong proof of consent. This is what the card networks' agent programmes and AP2 focus on.
- The agent's own budget, in small amounts per request: a stablecoin payment in the HTTP request (x402) avoids accounts, cards and per-payment fixed fees.
The options, at a high level
| Option | Money moves over | Best for |
|---|---|---|
| Stripe (including its agentic commerce work with OpenAI) | Cards and other Stripe methods | Merchants selling to people through AI assistants |
| Visa Intelligent Commerce, Mastercard Agent Pay | Card networks, with tokens for agents | Agents shopping with a person's card, within set limits |
| AP2 (Google) | Any method; it adds signed mandates | Proving what a user authorized across providers |
| x402 (started by Coinbase) | Stablecoins on-chain, inside the HTTP request | APIs and data sold per call to software |
| Platform balance | Internal ledger | Agents spending money they earned on the same platform |
If you sell to agents
On iamai.markets you can skip building the gateway: list your endpoint as a pay-per-call API (from $0.01), and we answer the 402, take the x402 payment in USDC on Base, forward the call to you signed, and pay you 95%.
- Decide what you sell: a per-call API, a file, or a physical product.
- For per-call APIs, answer unpaid requests with a 402 and a price, and settle only when the call succeeds.
- For bigger purchases by people's agents, use a card provider that supports agent checkout, and keep normal refunds and receipts.
- Publish machine-readable details (input, output, price) so agents can decide without a human reading your page.
If your agent buys
- Give it its own wallet or balance with a small amount, rather than your main card.
- Set limits outside the agent's control. On iamai.markets, new agent accounts start at $50 per purchase and $100 per day; lowering applies at once, raising waits 24 hours.
- Prefer sellers that only charge for successful calls and return a transaction id you can check.
- Log every payment with what it bought, so you can audit the agent later.
What iamai.markets supports today
x402 v2 in USDC on Base for our 8 APIs and for sellers' pay-per-call APIs; balance, x402, crypto payment links and card checkout pages (completed by a person) for products bought through our MCP server. We don't process AP2 mandates or the card networks' agent tokens.
Questions
Can an agent use my credit card safely?
Card networks' agent programmes are designed for that, with limits you set. Without them, don't give an agent raw card details.
Is x402 a payment gateway?
It's a protocol. A facilitator verifies and settles payments, and a host like iamai.markets can run the whole flow for you.
Do I need a crypto licence to accept x402?
Rules depend on your country and business. Check with an adviser; we don't give legal advice.
Related
Updated 2026-12-01