Acp payment handlers

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Acp payment handlers is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Implement ACP payment handlers — pluggable payment method specifications including tokenized cards, seller-backed methods (gift cards, points, store credit), and handler negotiation. Use when adding payment methods or building custom payment handler support.

How to use this skill

Skill file

ACP Payment Handlers

Before writing code

Fetch live docs:

  1. Web-search site:github.com agentic-commerce-protocol rfcs payment_handlers for the payment handlers RFC
  2. Web-search site:github.com agentic-commerce-protocol rfcs seller_backed for seller-backed payment handler RFC
  3. Fetch https://developers.openai.com/commerce/specs/payment/ for payment data structures
  4. Web-search site:docs.stripe.com agentic-commerce payment handler for Stripe's handler implementation

Conceptual Architecture

What Payment Handlers Are

Payment handlers are pluggable specifications that define how a particular payment method works within ACP. Each PSP or merchant publishes handler specs, and agents/merchants negotiate which handlers they mutually support.

This inverts the traditional integration model — instead of hardcoding payment methods into the protocol, handlers are discoverable and composable.

Handler Identification

Each handler has a reverse-DNS name and version:

Handler Structure

Each payment handler spec defines:

Tokenized Card Handler

The primary handler — uses Stripe's delegated payment:

  1. Agent provisions SPT via Stripe
  2. Agent sends SPT as the instrument credential in complete
  3. Merchant charges via Stripe using the SPT
  4. requires_delegate_payment: true

Seller-Backed Handlers

These bypass the PSP — the merchant directly manages the payment:

Handler Negotiation

During capability negotiation:

  1. Agent advertises supported payment handlers in capabilities.payment.handlers[]
  2. Merchant responds with handlers they accept
  3. Intersection determines available payment methods for the session
  4. Agent picks one and provides the appropriate instrument data

Payment Data Structure

When completing a checkout, the agent provides:

Best Practices

Fetch the payment handlers RFC and instrument schemas from the GitHub repo for exact field definitions before implementing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.