Commerce agents explained

What a merchant gets from Anthropic's Claude Commerce Agents blueprint, where the payment step sits, and what a store outside Shopify has to add before it can run one.

A commerce agent in this blueprint

On 2 September 2026 Anthropic published the Claude Commerce Agents blueprint, an open-source design (Apache-2.0) for two assistants a business runs on its own site. The word "agent" here means something narrow. An assistant is a model in a loop with a fixed list of tools. Each tool is a function the merchant's own systems answer: search the catalog, read a product, add to the cart, list the customer's orders, search the store's policies. The model decides which tool to call and what to say. The store's systems decide what is true.

Three rules hold the design together. The model can only mention products the store's systems returned in this conversation; an id it invents is refused before any system sees it. Every card the customer sees (a product carousel, a comparison, a checkout summary) is a tool call whose values the server fills in from its own records. And the only write the shopping assistant can make is to the cart. Nothing in the blueprint places an order or charges money.

That last rule is the one that matters most to anyone in payments, and it is deliberate. The blueprint's checkout tool renders the cart. A store may implement checkout_handoff, a function that returns a link, and the server attaches that link to the checkout card after the model's call has returned. The model never sees the link and cannot follow it. Whatever page the link opens is where the money moves.

The two agents every merchant gets

The store's assistant talks with a customer inside the store's own site or app. It searches with the customer's constraints, compares finalists, plans a set of items for a trip or a project, keeps the cart, answers order and delivery questions from the order record, and quotes the store's terms from the policy corpus. It remembers a small number of facts across visits (a size, a preference), each bounded in length and category. Five skills, each a page of rules loaded when a request matches, cover search and discovery, purchase research, planning, customer care and memory. When the customer is ready, the assistant stages a checkout: the cart appears as a card with a button, and the button opens the payment page.

A shopping conversation flowing from the shopper, through the assistant and the store's tools, to the checkout card, then across a wall to the payment company's checkout, and an order confirmation returning. SHOPPER ASSISTANT (THE MODEL) THE STORE'S OWN SYSTEMS PAYMENT COMPANY "A family tent under $250, pick up today. How can I pay?" Reasons, calls tools, shows cards It can read anything; it can only write to the cart Catalogsearch, details Cartadd, change Policiesreturns, pickup Ordershistory, status "Ready to check out" card cart summary + one button the money wall nothing the model calls can cross it The checkout hosted page · store page + API · store page + drop-in Card · Apple Pay · store card · gift card Pay in 4 · Pay by Bank · loyalty points Order placed · money settles confirmation returns as an event
The dot is the shopper's request. It moves through the assistant into the store's own catalog, cart, policies and orders, comes back as a checkout card, and only then crosses the wall to the payment company. The assistant's tools stop at the wall by construction.
the assistantthe store's systemsthe payment company

The operations assistant talks with staff in the merchant's back office. It explains why a metric moved, drafts listing copy, acts on low-stock and slow-mover alerts, proposes price changes and promotions within guardrails, and drafts campaigns. Every change it drafts is staged with an id and a preview, and a person presses Approve in the merchant's own tool before anything is applied. Five skills cover performance insights, inventory operations, catalog listings, pricing and promotions, and marketing campaigns.

This reference adds one skill to each assistant, and both files are the same for every processor (psp_commerce/skills/). tender-and-loyalty governs the moment a customer asks how to pay. Its card shows the store card's reward on this cart, the gift balance that applies, the pay-in-4 split and the points the order earns, with every figure computed by the server for that cart and none of them typed by the model. payments-operations gives the operations assistant the processor's view: settled volume and when it lands, authorization rate, tender mix, disputes with their deadlines, and the share of sales that agents initiated.

The store's assistant and a platform agent from outside

The blueprint's assistants are first-party. The merchant owns the surface, the catalog, the customer's identity and the checkout. A platform agent is the other kind: ChatGPT, Gemini, Copilot or Claude Code, acting for a shopper who is somewhere else, finds the store, reads its catalog and tries to buy. Three protocols make that possible. The Universal Commerce Protocol (UCP) is Google's specification for how a store publishes its catalog, cart and checkout to agents. The Model Context Protocol (MCP) is the transport UCP's shopping service runs over. The Agentic Commerce Protocol (ACP) is OpenAI's checkout-session API for ChatGPT.

Two panels. Left, first-party: a store's site containing its own assistant, catalog and checkout, with the payment company underneath. Right, third-party: a platform's agent reaching many stores through feeds and protocols, with tokens and agent identity checks between them, and the same payment company underneath each store. FIRST-PARTY · THIS LAUNCH The store's own website or app Its own assistantbrand voice, its rules Its own catalog & cartthe same data it sells from Its own checkout run by its payment company, in any of three integration models tenders intact: store card, gift, pay-in-4, Pay by Bank Needs: eleven functions and a checkout link. Does not need: network protocols, agent tokens, agent identity. Trust: shoppers trust a store's own assistant about 3× more (Bain). THIRD-PARTY · CHATGPT, GEMINI, COPILOT, PERPLEXITY The platform's agent one assistant, every store, the platform's account FEEDS · PROTOCOLS · TOKENS · AGENT IDENTITY UCP, ACP, AP2 (now at FIDO), Visa TAP, Mastercard Agent Pay, know-your-agent Store Afeed + live tools Store Bfeed + live tools Store Cfeed + live tools Each store's payment company still settles the sale Needs: a product feed per platform, a protocol per platform, tokens, identity.
Left is this launch. The assistant, the catalog and the checkout all belong to one store, so the customer never leaves it and no protocol is needed. Right is the other program: a platform's agent that must be identified, tokenized and admitted at each store.
the store's assistantthe storethe payment companya platform's agent
The store's assistant A platform agent
Who owns the surface the merchant's site or app the platform
How it reads the catalog the eleven backend functions the merchant implements the store's UCP endpoint, or an ACP product feed
Who holds the customer's identity the merchant's session, bound at sign-in the platform's account
How it reaches checkout a card with a button the customer presses create_checkout answers with a continue_url, or the platform completes with a credential the processor accepts
Who pays the customer, on the payment page the customer on the payment page, or the platform with a token

Shopify serves UCP for every store on its platform, and its create_checkout sends the shopper to Shopify's own page. A merchant elsewhere has to serve those endpoints itself. This reference serves them for every demo merchant from the same eleven functions the store's assistant uses, so one integration answers both kinds of agent.

Why the payment step is where designs diverge

Everything up to the cart looks the same at every merchant: a catalog, a product record, a cart with lines and a total. The payment step is different at each, and the blueprint leaves it open on purpose. Three facts describe every design in this reference.

The model never holds a card. No tool takes a card number, a wallet token or a bank account. The tender-and-loyalty skill tells the assistant never to ask for one and never to repeat back one a customer pastes. The processor's page or the merchant's page collects the details; the assistant is somewhere else entirely.

The checkout link never reaches the model. When the assistant calls checkout, the server creates the processor session and attaches its URL to the card after the call returns. tests/test_checkout_handoff_turn.py runs a full search, add and checkout turn and inspects every request body the model received; none contains the URL. The assistant sees only a confirmation that a checkout was staged.

The processor's page or the merchant's page does the payment. A merchant integrates a processor's checkout in one of four ways, and the reference implements all four behind the same card:

What changes across the four is who renders, who collects, who authorizes and how the store learns it is done. What never changes is what the model sees: a checkout tool that renders the cart, a tender card whose figures the server authored, and no URL.

After a payment on a live processor, the processor sends the shopper back to the store's return page. The store reads the outcome from the processor, records the order, and leaves a note the assistant reads on its next turn. The store's cart panel polls the store's own status route in the meantime, so the page notices the payment without a reload. When the customer asks whether the payment went through, the assistant answers from the note and the order list.

What a merchant outside Shopify needs

A Shopify merchant running Shopify's example gets most of this built in. Shopify serves the catalog and cart over UCP, runs the checkout page and the payment, offers Sign in with Shop, and publishes the store's policies. Shopify's example (vendor/claude-for-commerce-examples) needs a store domain and a model key, and it hands the shopper to Shopify's page. It never completes a checkout itself.

A stack of five layers a payment company can supply to the kit: the checkout handoff, the tender card, orders and settlement data, the staff agent's payments view, and a shared connector for third-party agents. Each layer marks what exists today and what must be built. LAYEREXISTS TODAY AT EVERY PROCESSORTO BUILD 1 · Checkout handoffa hosted page, an API, a drop-in (or all three)the adapter + the link, per model 2 · The tender momenttender config, loyalty, gift balancesa "ways to pay" card the server authors 3 · Orders & settlementtransaction search, payouts, reportsorders that appear after the checkout completes 4 · The staff agent's money viewsettled volume, auth rate, disputesmetrics + tables the agent can query 5 · One socket for outside agentsnetwork seats (Visa TAP, Agent Pay), MCPan MCP server: search, stock, checkout link
Existing assets on the left, the build on the right. Layers 1 to 4 serve the store's own assistant; layer 5 serves platform agents from the same catalog and the same checkout link.

A merchant on Stripe, Adyen, Worldpay, CyberSource or Clover has none of that page or endpoint from its platform, and has to supply six things:

  1. The handoff. A processor session, page or link created for the cart as it stands, in whichever integration model the merchant uses.
  2. The tender figures. What the store card earns, what a gift balance covers, what an installment split costs, from the processor's tender configuration and the merchant's loyalty and gift systems.
  3. Orders back from the processor. A payment the processor took has to appear in the customer's order list and in the assistant's next turn.
  4. The processor's numbers for the back office. Settled volume, authorization rate, disputes and deadlines, tender mix. The merchant's e-commerce platform does not have them; the processor does.
  5. The endpoints platform agents look for. UCP discovery and the shopping service over MCP, an ACP checkout session and a product feed.
  6. Webhooks with signature verification, so the processor's report of a payment or a dispute is the record.

How this reference fills the gap

The reference puts all six behind one interface. psp_commerce/gateway.py defines PaymentGateway; psp_commerce/adapters/ implements it once per processor as an HTTP client over that processor's documented API, and once as a simulated gateway that runs every demo and test with no credentials. CHECKOUT_MODEL=hosted|server|dropin|link picks the integration model. present_tender_options is the card, and PaymentsOpsMixin is the back-office view. psp_commerce/thirdparty/ serves UCP and ACP for every merchant from the same backend the store's assistant uses, and psp_commerce/webhooks.py verifies Stripe's and Adyen's signatures.

Five demo merchants show it, one per processor, all fictional: Northstar Outfitters on Clover, Lumen Home on Stripe, Aurora Escapes on Adyen, Beacon Wireless on Worldpay and Encore Seats on CyberSource. Shopify's example runs beside them, unchanged, against the public demo store fakestore-ai.myshopify.com. Each has a folder under platforms/ with a run script for the store's assistant, a run script for a platform agent, and a test script.

Stripe was run live on 6 September 2026 and Adyen on 7 September 2026, each in the processor's test environment. Worldpay, CyberSource and Clover were not run live in this repository; their folders work in simulated mode. Every merchant boots with no credentials, and the brand route says whether the gateway is simulated or live.

Where to go next