Agent Payments Protocol (AP2): When AI Can Transact with AI
First MCP, then A2A, and now the Agent Payments Protocol (AP2): a turning point Google just shipped that could completely change how we think about AI agents and e-commerce.
Also in: Tiếng Việt · 中文 · 한국어 · 日本語
First MCP, then A2A, and now the Agent Payments Protocol (AP2): a turning point Google just shipped that could completely change how we think about AI agents and e-commerce.
What problem does AP2 solve?
Google is trying to tackle these 3 challenges:
| Challenge | The question to answer |
|---|---|
| Authorization | Is the agent actually allowed to make a purchase? This isn't just a technical problem, it's a messy legal one too. |
| Authenticity | How does a merchant know the agent is really carrying out the user's intent, and hasn't been hacked or started acting weird? |
| Accountability | When something goes wrong, who's responsible? The user? The agent developer? The payment processor? The merchant? |
AP2 handles these challenges with a system of "Mandates": "digital contracts" signed with cryptography that act as verifiable proof of the user's intent.
Two types of transactions
1. Human Present
- The agent searches for products
- It brings the shopping cart back for the user to review
- The user personally approves the final transaction
2. Human NOT Present
- Way more complex, using a cryptographically signed intent mandate (no clue how to put that in plain words 😆)
- The agent may complete the transaction on its own based on preset conditions
- Example: "Buy this blue jacket if it drops below $30"
Built on top of MCP and A2A
One smart move from Google: AP2 is built as an extension on both the MCP and A2A protocols. That means:
- Reusing the existing MCP infrastructure for tools and data context
- Reusing the A2A protocol for talking to external agents (inter-agent communication)
- Adding a payment layer without rebuilding from scratch
mermaidflowchart TD
U["User"] -->|"Signed mandate"| A["AI Agent"]
A -->|"MCP: tools and data context"| T["Tools / Data"]
A -->|"A2A: agent-to-agent communication"| O["Other agents"]
A -->|"AP2: payment layer"| P["Payment methods"]
P --> C["Credit/debit cards"]
P --> S["Stablecoins and crypto"]
P --> B["Bank transfers"]The architecture also supports multiple payment methods:
- Credit/debit cards
- Stablecoins and crypto
- Bank transfers
Notably, the x402 extension, developed with Coinbase, lets agents pay each other in stablecoins.
Google isn't going it alone
More than 60 major organizations already back AP2, including:
- Financial: American Express, Mastercard, PayPal, Coinbase, Revolut
- Tech: Salesforce, ServiceNow, Intuit
- Commerce: Etsy
- Payments: Adyen, Worldpay
Support this broad shows the world is genuinely gearing up for the "agentic commerce revolution".
A few use cases for AP2
- Ticket hunting: Your agent waits for tickets to that sold-out musical to go on sale, then reserves and pays the instant it gets a shot 😁
- Visual shopping: Snap a photo of a shirt, and the agent recognizes the brand, scans the web for the best price and buys it if it's under your preset budget.
- Deal hunting: The agent keeps watching the products you care about and only buys when there's a big discount or a flash sale.
Next prediction: Agent App Stores
Building on AP2, allow me to put on my fortune-teller hat and predict what's next: Agent App Stores, where agents can:
- Discover and hire other specialized agents
- Pay per task or per service (outcome-based payment)
- Create fully autonomous micro-economies
Imagine your agent needs to analyze a complex PDF: it could automatically hire a "data analyst" agent, pay a few cents, and get the results back.
Open source and the Linux Foundation
Google is doing the same thing it did with A2A: "donating" the protocol to the Linux Foundation and keeping it fully open source. It's a smart strategy that builds credibility by keeping everything transparent in public.
It's not ready to use just yet, but now is a good time to start digging into it.