Use when implementing the Agent Payments Protocol (AP2) for secure, compliant AI-driven commerce. Covers intent mandates, cart mandates, payment flows, and merchant integration.
USE FOR: agent-driven purchases, secure commerce mandates, user-authorized shopping flows, payment credential verification
DO NOT USE FOR: API micropayments (use x402), agent communication (use a2a), tool integration (use mcp)
التثبيت
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Use when implementing the Agent Payments Protocol (AP2) for secure, compliant AI-driven commerce. Covers intent mandates, cart mandates, payment flows, and merchant integration.
USE FOR: agent-driven purchases, secure commerce mandates, user-authorized shopping flows, payment credential verification
DO NOT USE FOR: API micropayments (use x402), agent communication (use a2a), tool integration (use mcp)
AP2 is an open protocol from Google for secure, interoperable AI-driven commerce. It provides a common language for transactions between agents and merchants, preventing a fragmented payments ecosystem. AP2 is designed as an extension for A2A and MCP, adding a secure commerce layer on top of agent communication.
Core Concepts
Intent Mandate
Captures the conditions under which an AI agent can make a purchase on behalf of the user:
Budget limits (per-transaction, daily, monthly)
Allowed merchant categories
Product type restrictions
Time-based constraints
Cart Mandate
Captures the user's final, explicit authorization for a specific cart:
Itemized list of products/services
Total price and currency
User's cryptographic signature (non-repudiable proof of intent)