---
title: "Agent Payments Protocol (AP2): When AI Can Transact with AI"
url: "https://zuey.me/articles/agent-payments-protocol-ap2-khi-ai-co-the-giao-dich-voi-ai?lang=en"
locale: en
access: free
full_text: true
published_at: "2025-09-19T02:31:52.000Z"
tags: ["AI Agents", "AP2", "MCP", "Perspectives"]
translations:
  vi: "https://zuey.me/articles/agent-payments-protocol-ap2-khi-ai-co-the-giao-dich-voi-ai.md?lang=vi"
  zh: "https://zuey.me/articles/agent-payments-protocol-ap2-khi-ai-co-the-giao-dich-voi-ai.md?lang=zh"
  ko: "https://zuey.me/articles/agent-payments-protocol-ap2-khi-ai-co-the-giao-dich-voi-ai.md?lang=ko"
  ja: "https://zuey.me/articles/agent-payments-protocol-ap2-khi-ai-co-the-giao-dich-voi-ai.md?lang=ja"
---
# 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.

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

```mermaid
flowchart 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"]
```

*AP2 is a payment layer added on top of MCP and A2A*

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".

> **WARN:** Honestly, I think security for AI agent payments is a lot more complicated than that. On top of AI-specific threats like prompt injection, stolen credentials and hijacked execution,... AI agents can also mimic human behavior perfectly, which makes fraud detection extremely hard. Let's see how real-world AP2 cases deal with this.

### A few use cases for AP2

1. **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 😁
2. **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.
3. **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.

> **TIP:** If you've read this far and you're thinking of building that marketplace, my honest advice is: **DON'T**. The big players are definitely building it quietly already, and with marketplaces like this, users end up trusting the reputable names anyway. The same thing already happened with MCP, so the lesson is right in front of us.

### 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.
