Research/Payments

Google's AP2: How the Agent Payment Protocol Standardizes AI Commerce

Google's Agent Payments Protocol creates a common language for AI agents and merchants to conduct secure, compliant transactions.

bcTanjiSep 12, 2026

AI agents are increasingly expected to handle purchases, subscriptions, and financial workflows on behalf of users. But there is no universal language for how an agent proves it has permission to spend, how a merchant validates that proof, or how the resulting payment settles. Google's Agent Payments Protocol (AP2) attempts to solve this by introducing a cryptographic authorization layer that sits between the agent and the payment rail, regardless of whether the underlying settlement uses card networks, bank transfers, or stablecoins.

Announced in September 2025 with over 60 launch partners, AP2 has since grown past 100 supporting organizations including Mastercard, PayPal, Coinbase, and Lightspark. In April 2026, Google donated the protocol to the FIDO Alliance for vendor-neutral governance, signaling a serious push toward standardization.

Why Agents Need a Payment Protocol

Today's payment systems were designed for humans interacting with checkout forms. A browser user clicks "Buy," authenticates with a password or biometric, and the payment gateway processes the charge. AI agents break this model. They operate programmatically, often without a browser, and may need to execute purchases autonomously while the user is offline.

This creates three problems that AP2 targets directly:

  • Authorization: how does a merchant know the agent has permission to spend?
  • Authenticity: how can a merchant verify the agent's request reflects the user's actual intent?
  • Accountability: if something goes wrong, who is responsible and what is the audit trail?

Without a standard protocol, every agentic wallet and merchant integration becomes a bespoke arrangement. AP2 proposes a common framework so that any compliant agent can transact with any compliant merchant, regardless of the underlying payment processor or settlement network.

How AP2 Works: Mandates and Cryptographic Proof

The core mechanism in AP2 is the Mandate: a cryptographically signed artifact that serves as non-repudiable proof that a user authorized a specific transaction. Mandates are structured as W3C Verifiable Credentials, encoded using SD-JWT with key binding (SD-JWT+kb), and signed with ECDSA P-256 (ES256) per the spec's normative requirements.

Mandate Types

AP2 defines two mandate categories, each with two lifecycle stages:

Mandate TypeOpen StageClosed Stage
Checkout MandateCaptures user constraints before finalizationAuthorizes the finalized checkout details
Payment MandateDefines payment constraints for autonomous executionAuthorizes a specific amount and recipient

Each mandate carries a timestamp, nonce, signer's public key reference, and a detached JWS signature over the JSON-canonicalized payload (per RFC 8785). The merchant's checkout response includes its own merchant_authorization signature, creating a two-sided cryptographic handshake.

Transaction Flow

A standard AP2 transaction proceeds in three steps:

  1. The agent initiates checkout with a merchant. The merchant returns a response containing its merchant_authorization (a detached JWS signature). The agent platform verifies this signature.
  2. The user (or a trusted platform acting on the user's behalf) signs a checkout mandate. For wallet-based signing, AP2 supports OpenID4VP. Once signed, the mandate is bound to the specific checkout session.
  3. The agent submits the mandate and payment credential to the merchant's complete_checkout endpoint. The merchant verifies the mandate signature, expiration, and scope match. Once AP2 is negotiated, the session becomes "Security Locked": neither party can revert to a non-AP2 flow.
Human Not Present mode: AP2 v0.2 introduced autonomous execution for agents operating without real-time user approval. The user signs an Intent Mandate upfront with constraints (price limits, timing windows, product categories), and the agent generates Cart Mandates autonomously when conditions are met. This is designed for scenarios like purchasing limited-release items the moment they become available.

Discovery

Merchants advertise AP2 support through a well-known endpoint at /.well-known/ucp, declaring the capability dev.ucp.shopping.ap2_mandate. This builds on Google's Universal Commerce Protocol (UCP), released in January 2026, which handles the full shopping journey from product discovery through checkout. AP2's mandates function as a UCP extension, meaning agents can discover and negotiate AP2 capabilities during the standard UCP checkout flow.

Payment Rail Agnosticism

AP2 is deliberately rail-agnostic. It is an authorization framework, not a payment scheme. Settlement occurs through whatever rail the merchant and agent agree on:

  • Card networks: Mastercard, American Express, JCB, and UnionPay International have announced integrations
  • Real-time bank transfers: UPI, PIX, and similar instant payment systems are on the roadmap
  • Stablecoins: treated as first-class citizens through the A2A x402 extension, built with Coinbase, the Ethereum Foundation, and MetaMask
  • E-wallets and alternative payment methods: planned for future releases

This rail-agnostic design is what makes AP2 relevant to stablecoin payment rails. A merchant accepting AP2-authorized transactions does not need to care whether settlement happens over Visa or over a stablecoin clearing network. The mandate proves user authorization either way.

The Competitive Landscape: AP2, x402, ACP, and MPP

AP2 is not the only protocol attempting to standardize agentic payments. Four protocols now compete (and, in some cases, complement each other) across different layers of the stack.

Protocol Comparison

DimensionAP2 (Google)x402 (Coinbase)ACP (Stripe/OpenAI)
Primary functionCryptographic authorizationHTTP-native stablecoin settlementStandardized checkout interactions
LayerAuthorization and trustSettlement and executionCheckout and merchant integration
Payment railsRail-agnostic (cards, bank, crypto)Stablecoin-only (primarily USDC)Cards, bank transfers, digital wallets
Core mechanismW3C Verifiable Credential mandatesHTTP 402 status code with signed payment headersRESTful endpoints with SharedPaymentTokens
Primary backersGoogle, Mastercard, PayPal, AmexCoinbase, CloudflareStripe, OpenAI, Meta
Open-source governanceFIDO Alliance (donated April 2026)Open-source on GitHubApache 2.0 license
Best suited forEnterprise multi-agent systems with compliance needsMachine-to-machine micropayments, pay-per-use APIsAgent-based shopping within existing merchant ecosystems

Complementary, Not Competing

The relationship between these protocols is more nuanced than a simple standards war. AP2 and x402 operate at different layers: AP2 proves the user authorized a purchase; x402 executes the settlement on-chain. Google explicitly acknowledges this by publishing an official A2A x402 extension that bridges the two protocols. In a mature stack, an agent could use AP2 to authorize a purchase, ACP to manage the merchant checkout flow, and x402 or stablecoin rails for final settlement.

Key distinction: AP2 answers "does this agent have permission to spend?" while x402 answers "how does the money move?" Stripe's ACP answers "how does the agent interact with the merchant's checkout?" These are different questions, and a production deployment may use all three.

Mastercard's Verifiable Intent

Mastercard co-developed a companion standard called Verifiable Intent alongside AP2. This tamper-proof logging system documents every user-authorized agent action using selective disclosure: each party in the transaction chain receives only the minimum information needed. Mastercard's Agent Pay pilot, running inside PayPal, uses Verifiable Intent to create an audit trail that satisfies existing card network dispute resolution processes.

Verifiable Intent was also donated to the FIDO Alliance in April 2026, alongside AP2 itself. The two specifications are being standardized within FIDO's Agentic Authentication and Payments Technical Working Groups.

Stablecoin Settlement and Bitcoin L2 Infrastructure

AP2's explicit support for stablecoin settlement creates an interesting intersection with Bitcoin Layer 2 infrastructure. When an AP2-authorized transaction settles via stablecoins, the settlement layer determines latency, cost, and finality. Traditional EVM chains impose gas fees and variable confirmation times. Bitcoin L2 networks like Spark offer an alternative: instant transfers with near-zero fees on a network that already supports native stablecoin issuance through the USDB stablecoin.

Consider the flow: an AI agent negotiates a purchase using AP2 mandates, the merchant accepts stablecoin settlement, and the actual value transfer executes over a Bitcoin L2 with sub-second finality. The AP2 authorization layer does not care which network settles the payment, only that the mandate is valid. This modularity means any settlement network that supports programmable stablecoins can plug into the AP2 ecosystem.

Production Deployments and Adoption

As of mid-2026, AP2 has three named production deployments:

  1. PayPal's wallet integration with Google Cloud's Conversational Commerce Agent, co-announced in October 2025
  2. Mastercard's Agent Pay pilot running inside PayPal
  3. The A2A x402 extension for crypto-native agent payments

The partner list spans payment networks (Mastercard, American Express, JCB, UnionPay), PSPs (PayPal, Adyen, Checkout.com, Worldpay), e-commerce platforms (Etsy, Shopee), blockchain infrastructure (Coinbase, Lightspark, MetaMask, Mysten Labs), and enterprise software (Salesforce, Intuit, Okta).

Google's broader Universal Commerce Protocol ties AP2 into a full-stack commerce system. UCP's Universal Cart, announced at Google I/O 2026, creates a persistent shopping basket across Search, Gemini, YouTube, and Gmail. AP2 mandates provide the authorization layer for this cross-surface checkout experience.

Will the Market Converge or Fragment?

The existence of four competing protocols (AP2, x402, ACP, MPP) raises the question of whether winner-take-all dynamics will consolidate the market. Several factors suggest partial convergence rather than outright fragmentation:

  • The protocols address different layers: authorization (AP2), checkout (ACP), and settlement (x402). They can coexist in a single payment flow.
  • Key players participate in multiple protocols: Coinbase is a partner on both AP2 and x402. Lightspark appears in both AP2 and MPP partner lists. Mastercard supports AP2, ACP, and MPP.
  • The FIDO Alliance donation gives AP2 a governance structure similar to web standards like WebAuthn, which historically drive convergence through browser vendor adoption.
  • Card networks have strong incentives to back AP2 because it preserves their existing role in interchange and authorization.

The most likely outcome is a layered standard stack where AP2 handles authorization, a checkout protocol (ACP or a UCP superset) manages merchant interaction, and settlement-layer protocols like x402 or native stablecoin rails handle the actual money movement. Merchants will adopt whichever combination their existing PSP supports, just as they adopted 3D Secure without needing to understand the underlying cryptography.

Risks and Open Questions

Platform Lock-In

Despite the FIDO Alliance donation, AP2's tight coupling with Google's UCP and A2A protocols means early adopters are building primarily within Google's ecosystem. Whether FIDO governance produces genuine multi-vendor implementations or merely a Google-led standard with rubber-stamp approval remains to be seen.

Mandate Complexity

The SD-JWT+kb mandate format, while cryptographically sound, adds implementation complexity. Merchants already struggle with 3D Secure integration. Adding another cryptographic layer to the checkout flow may face adoption resistance, particularly among smaller merchants without dedicated payments engineering teams.

Autonomous Agent Risk

The "Human Not Present" mode introduces novel liability questions. If an agent exceeds its mandate constraints due to a bug or adversarial manipulation, who bears the loss? Existing card network chargeback rules were not designed for AI-initiated transactions. Mastercard's Verifiable Intent helps with the audit trail, but the legal framework for agent-initiated payment fraud is still evolving.

What Developers Should Watch

AP2 matters for anyone building agentic payment infrastructure. The protocol's open-source repository includes a Python SDK, reference implementations in TypeScript, Kotlin, and Go, and sample applications built with Google's Agent Development Kit.

For builders working on stablecoin settlement infrastructure, the AP2 ecosystem represents a potential demand channel. An agent-authorized payment that settles through a stablecoin rail needs fast finality and low fees at the settlement layer. Developers building on Bitcoin L2 infrastructure can explore the Spark SDK for integrating stablecoin settlement into agent-to-merchant flows, and the x402 protocol analysis for understanding the settlement layer these authorization protocols connect to.

This article is for educational purposes only. It does not constitute financial or investment advice. Bitcoin and Layer 2 protocols involve technical and financial risk. Always do your own research and understand the tradeoffs before using any protocol.