Build an agentic commerce gateway without replacing checkout
Learn how to support UCP, ACP, AP2 and Visa TAP through a secure agentic commerce gateway while keeping your existing checkout authoritative and auditable.

Agentic Commerce Protocol Gateway: Support UCP, ACP, AP2 and Trusted Agents Without Replacing Checkout
Last verified: November 8, 2026
Agentic commerce is developing across several layers, not converging on one interchangeable standard.
- Universal Commerce Protocol (UCP) supports capability discovery and commerce operations across platforms.
- Agentic Commerce Protocol (ACP) connects merchant catalogs and checkout systems with ChatGPT.
- Agent Payments Protocol (AP2) adds signed Checkout Mandates and Payment Mandates.
- Visa Trusted Agent Protocol (TAP) helps merchants recognize approved agents through signed HTTP messages.
UCP and ACP describe commerce interactions. AP2 supplies evidence of delegated purchase and payment authority. Visa TAP supplies agent trust signals. A trusted-agent signature does not prove that a customer authorized a specific purchase. (developer.visa.com)
Supporting several protocols directly in Shopware, Shopify, an ERP or a custom checkout can duplicate pricing and security logic. A merchant-controlled gateway can translate them into one internal model. This preserves the authoritative checkout core, provided it already exposes suitable APIs.
Build around a canonical commerce model
Use separate adapters where schemas or lifecycle rules differ. Map them into shared operations:
- discover supported capabilities
- create or update a cart
- revalidate variants, prices and inventory
- calculate tax, promotions and fulfillment
- validate delegation and payment evidence
- authorize payment and create an order
- cancel, refund, return or escalate
Keep extension fields for protocol-specific information. Forced normalization can lose mandate claims, fulfillment groups, subscription terms or dispute evidence.
The merchant backend must remain authoritative. It should reprice the cart and determine currency, tax, inventory and shipping before completion. In the documented ACP deployment, checkout state and payment processing remain on merchant systems. OpenAI is not the merchant of record, though responsibility should still be confirmed in each contract. (developers.openai.com)
A gateway is most useful when a merchant supports several channels or needs one policy boundary across multiple systems. Direct integration may be simpler for one protocol and one modern checkout. A managed platform may suit teams that prefer lower operating effort over infrastructure control.
Separate trust, authority and payment
A valid signature proves key possession and message integrity. Trusted identity also requires a secure key binding, issuer validation, expiry and revocation checks.
The gateway should evaluate five distinct questions:
- Agent identity: Is the key linked to an accepted agent and trust chain?
- Customer identity: Which person or organization is the agent representing?
- Delegated authority: Does the mandate permit this merchant, cart, amount and currency?
- Merchant policy: Are the products, location and risk level acceptable?
- Payment authorization: Can the PSP process the supplied token or credential?
AP2 defines separate Checkout and Payment Mandates. The Checkout Mandate binds authority to the merchant's signed checkout. The Payment Mandate proves authority to pay for that checkout. Verifiers must check the audience, issuer, expiry, transaction identifiers and checkout hash before acting. (github.com)
Visa TAP uses HTTP Message Signatures and published keys to help merchants recognize trusted agent requests. Its signals can inform bot controls and risk policy but they must not replace customer authentication or transaction authorization. (developer.visa.com)
Secure the end-to-end flow
A typical sequence is:
Discover capabilities → verify agent and principal → build cart → reprice → validate mandates → obtain PSP authorization → commit order → return status or receipt.
Reject stale timestamps, reused nonces and unsupported signature algorithms. Canonicalize signed content and enforce idempotency keys. Authenticate webhooks, rate-limit callers and rotate or revoke keys. Bind every authorization to the merchant, currency, final amount and checkout digest to prevent replay or confused-deputy attacks.
Payment support also depends on the PSP. ACP delegated payments use one-time requests with an amount limit and expiry. Direct handling of card data is intended for eligible PCI DSS Level 1 merchants or PSPs. Other deployments should keep card data inside approved tokenization and vaulting flows. Regional requirements such as PSD2 and Strong Customer Authentication still need separate assessment. (developers.openai.com)
Make decisions auditable without creating a data vault
Record normalized events under one correlation ID. Store policy results, hashes, key identifiers, mandate references and payment references. Do not place raw secrets or prohibited card data in logs.
Apply redaction, role-based access and defined retention periods. Keep security audit events immutable but store customer data only as long as required. Deletion rules must account for privacy law, fraud investigations and financial record obligations.
If a €400 checkout exceeds a €300 mandate, return a policy failure before payment. State whether tax and shipping count toward the cap. Include a new authorization requirement and an opaque handoff token. The token should be short-lived and single-use. It should reference server-side state rather than expose cart or mandate data in the URL. Reauthenticate the customer and revalidate the cart before purchase. UCP supports merchant-provided continuation URLs for buyer review and escalation. (ucp.dev)
Version adapters and design for failure
Version adapters independently from business logic. Run conformance tests against signed fixtures and support overlapping versions during migrations. UCP uses date-based versions and capability intersection through profiles published at /.well-known/ucp. Its profiles can also publish JWK keys for HTTP Message Signature verification. (ucp.dev)
Model partial failures explicitly. If payment succeeds but order creation fails, retry idempotently before voiding or refunding. Handle expired reservations, delayed webhooks and duplicate callbacks through a durable state machine and dead-letter queue.
A gateway adds latency, monitoring and key-management work. It becomes valuable when that cost is lower than maintaining several inconsistent checkout integrations. The goal is not to avoid all checkout changes. It is to protect one authoritative commerce core while adding new agent channels through controlled adapters.




