Implement AP2 Payment Mandate modality selection so a merchant requires real-time Cart Mandate authorization for human-present purchases but honors pre-signed Intent Mandate terms for human-not-present, delegated purchases

domain: ap2-protocol.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Determine which of AP2's two transaction modalities applies to a given flow: human-present (the user actively approves a specific cart in real time) or human-not-present (the agent executes later against pre-delegated terms)
  2. For human-present flows, require a signed Cart Mandate capturing the exact items and price at the moment of purchase before proceeding, since that mandate is the non-repudiable record of the user's real-time approval
  3. For human-not-present flows, validate the transaction against the constraints encoded in the earlier-signed Intent Mandate (budget caps, merchant allow-list, time window) rather than expecting a fresh real-time approval that won't arrive
  4. Read the transaction modality field carried on the Payment Mandate to confirm which flow the agent is asserting, and reject mismatches (e.g. a human-not-present assertion for a flow that actually requires live approval)
  5. Verify the full cryptographic signature chain (Intent Mandate to Cart Mandate to Payment Mandate, as applicable to the modality) before releasing goods or services
  6. Log which modality was used per transaction, since it materially affects your dispute-evidence story (real-time user consent vs. pre-authorized delegated consent)

Known gotchas

Related routes

Implement AP2 Payment Mandate verification on the merchant or PSP side so the payment network can confirm agent authorization before settlement
ap2-protocol.org · 5 steps · unrated
Integrate Google AP2 (Agent Payments Protocol) mandates into a merchant checkout flow so agents can carry cryptographically-signed purchase authority
ap2-protocol.org · 6 steps · unrated
Issue an AP2 Open Intent Mandate so an AI agent can autonomously search and purchase within user-defined budget and merchant constraints
ap2-protocol.org · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans