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.
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.
| 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:
- On a hosted page, the button opens the processor's own page. The processor renders the ways to pay, collects the details, authorizes, and sends the shopper back. The merchant's site holds no card data.
- On the merchant's own page, the merchant's server created a payment intent when the card was staged. The page collects the details and the merchant's server calls the processor's API to authorize. The processor renders nothing.
- With a drop-in component, the merchant's page embeds the processor's browser component. The component collects and completes inside the processor's frame, and the processor's webhook tells the merchant.
- With a payment link, the button opens a processor-hosted link created for exactly this cart, which can also be sent by email or handed to an agent.
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 merchant on Stripe, Adyen, Worldpay, CyberSource or Clover has none of that page or endpoint from its platform, and has to supply six things:
- The handoff. A processor session, page or link created for the cart as it stands, in whichever integration model the merchant uses.
- 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.
- 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.
- 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.
- The endpoints platform agents look for. UCP discovery and the shopping service over MCP, an ACP checkout session and a product feed.
- 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
- How it works, the architecture for engineers and product managers.
- First-party use cases, every scene the store's assistant handles, from search to the order confirmation.
- Third-party agents, how an outside agent shops here.
- Payment processors, what each processor's adapter calls and what was verified.
- Shopify, the store that gets the payment step built in.
- Skills and modules, what the agents load and how the code is layered.
- Any model, the same loop on other models.
- Security and trust, what keeps the shopper and the merchant safe.
- What is verified, the dated ledger.
- The root README, with the platform table and the five-minute start.