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.

Read the docs

Start with one question: whose money is it?

The options, at a high level

OptionMoney moves overBest for
Stripe (including its agentic commerce work with OpenAI)Cards and other Stripe methodsMerchants selling to people through AI assistants
Visa Intelligent Commerce, Mastercard Agent PayCard networks, with tokens for agentsAgents shopping with a person's card, within set limits
AP2 (Google)Any method; it adds signed mandatesProving what a user authorized across providers
x402 (started by Coinbase)Stablecoins on-chain, inside the HTTP requestAPIs and data sold per call to software
Platform balanceInternal ledgerAgents 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%.

  1. Decide what you sell: a per-call API, a file, or a physical product.
  2. For per-call APIs, answer unpaid requests with a 402 and a price, and settle only when the call succeeds.
  3. For bigger purchases by people's agents, use a card provider that supports agent checkout, and keep normal refunds and receipts.
  4. Publish machine-readable details (input, output, price) so agents can decide without a human reading your page.

If your agent buys

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