/ap2-agentic-payments:ap2-checkout-mandatefrom ap2-agentic-payments
Implements the AP2 Checkout Mandate credential for authorizing checkout completion, with open (constrained) and closed (merchant-verified) forms, merchant-signed payloads, checkout hashes, and user confirmation on a trusted surface.
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.
Renamed. This credential was called the Cart Mandate in earlier AP2 releases. If you are reading older samples, blog posts, or tutorials that say "Cart Mandate", they are describing this object — but the structure changed along with the name, so do not port field names across. Fetch the live schema.
Fetch live docs:
https://ap2-protocol.org/ap2/checkout_mandate/ for the current Checkout Mandate schema — open and closed forms.https://ap2-protocol.org/ap2/agent_authorization/ for the open/closed mandate model this sits inside. Read that first if you have not; the mandate makes little sense without it.https://ap2-protocol.org/glossary/ to catch any further renames.site:github.com google-agentic-commerce AP2 code sdk mandate checkout for the current type definitions under code/.The Checkout Mandate authorizes completing a checkout transaction. It is the credential that says "this user agreed to buy this."
It exists in two forms, matching the open/closed model from the Agent Authorization Framework:
| Form | Bound to a transaction | Used for |
|---|---|---|
| Open | No — carries constraints | Human-not-present: the user authorizes a shape of purchase in advance |
| Closed | Yes — merchant-verified | Human-present, or the resolution of an open mandate |
An open Checkout Mandate bounds what a valid closed mandate may contain:
These constraints are the security boundary for autonomous purchasing. The verifier must enforce them; do not rely on the agent to police itself.
The closed form carries the merchant's commitment:
vct — the credential type identifiercheckout_jwt — base64url-encoded, serialized, merchant-signed JWT of the checkout payloadcheckout_hash — cryptographic hash identifying the specific checkoutiat / exp — issued-at and expiryRead the live schema for the exact vct value and the full field list; both have changed between releases.
So there are two distinct commitments in play, and conflating them is the classic mistake:
The merchant's signature covers a canonicalized form of the checkout payload so that serialization differences cannot change what was signed. Verify against the live spec:
checkout_hash is computed and what it must match.Do not implement any of the above from memory or from an older sample. Signature verification that is "close enough" is a security defect.
For the human-not-present path, the user signs an open mandate at step 3 and the agent later produces the closed mandate — see ap2-human-not-present-flow.
ap2-dispute-accountability).exp deliberately — an unexpiring checkout authorization is a standing liability.ap2-agent-authorization (the framework), ap2-payment-mandate (authorizes the payment itself), ap2-vdc-framework (credential formats), ap2-human-present-flow, ap2-human-not-present-flow.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin ap2-agentic-payments19 skills in this plugin
/ap2-a2a-extensionImplement AP2 as an A2A extension — mandate DataParts in A2A messages, Agent Card AP2 capabilities, payment-specific task flows, and inter-agent payment communication. Use when integrating AP2 payment capabilities into A2A multi-agent systems./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-Other plugins' skills for the same job