/ap2-agentic-payments:ap2-a2a-extensionfrom ap2-agentic-payments
Implements AP2 payment capabilities as an A2A extension, adding mandates, DataParts, Agent Card payment capabilities, and inter-agent payment task flows to A2A multi-agent systems.
Ships in ap2-agentic-payments. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live docs:
https://ap2-protocol.org/ap2/specification/ for the A2A extension specificationhttps://ap2-protocol.org/ap2/implementation_considerations/ for protocol integration detailssite:github.com google-agentic-commerce AP2 a2a extension for reference implementationsite:github.com google-agentic-commerce AP2 samples a2a for A2A-based samplesAP2 is designed as a direct extension of the A2A protocol. It adds payment-specific capabilities to A2A's general-purpose agent-to-agent communication:
As the documentation states: "A2A is required to standardize intra-agent communication — as soon as you have more than one agent you need A2A." AP2 adds payment standardization on top.
AP2 agents declare payment support in their Agent Card:
{
"name": "MerchantAgent",
"capabilities": {
"extensions": [
{
"description": "AP2 Payment Extension",
"required": true,
"uri": "https://ap2-protocol.org/extension/v1"
}
]
},
"skills": [
{
"id": "checkout",
"name": "Cart and Payment",
"description": "Handles product search and cart creation",
"tags": ["ap2", "payment", "commerce"]
}
],
"security": [...],
"securitySchemes": {...}
}
AP2 mandates are transmitted as DataParts within A2A messages:
Each phase of the AP2 flow maps to A2A tasks:
A2A messages carrying AP2 mandates include:
{
"role": "user",
"parts": [
{
"type": "text",
"text": "I want to buy a coffee maker"
},
{
"type": "data",
"data": {
"intent_mandate": { ... }
}
}
]
}
┌─────────────────────────────┐
│ AP2 (Mandates, VDCs, Signing)│
├─────────────────────────────┤
│ A2A (Tasks, Messages, Parts) │
├─────────────────────────────┤
│ HTTP / JSON-RPC 2.0 │
└─────────────────────────────┘
Shopping Agents discover AP2-capable merchants by:
.well-known/agent-card.json or registries)capabilities.extensions[]The reference samples include a watch.log that captures:
This is valuable for debugging the A2A ↔ AP2 integration.
Fetch the specification for exact A2A extension schema, DataPart structures for mandates, and Agent Card AP2 capability declaration before implementing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin ap2-agentic-payments19 skills in this plugin
/ap2-agent-authorizationImplement the AP2 Agent Authorization Framework — open vs closed mandates, the two-phase delegation/authorization process, the cryptographic authorization chain, Key Binding JWTs, and human-present vs human-not-present signing. Use when designing how a user authorizes an agent to act, before touching any specific mandate type./ap2-challenge-stepupImplement AP2 challenge and step-up flows — 3DS2, OTP verification, redirect challenges, and trusted surface interactions. Use when building additional authentication steps during agentic payment processing./ap2-checkout-mandateOther plugins' skills for the same job