The platform folders
One folder per payment processor, plus one for Shopify, each with the same four things inside: a README, an environment template, a first-party run, a third-party run, and a test script that says PASS or FAIL.
What a platform folder is
This reference implementation of Anthropic's Claude Commerce Agents blueprint runs the blueprint's two agents for merchants whose checkout belongs to a payment processor. Each processor gets a folder under platforms/ with a fictional demo merchant behind it. The folder is the whole surface a newcomer needs: where credentials go, what to run, what to expect, and how to know it works on their machine.
The six folders are stripe, adyen, worldpay, cybersource, clover, and shopify. The first five put a processor behind the blueprint's checkout_handoff and serve the merchant to outside platform agents over UCP (Universal Commerce Protocol, carried over MCP, the Model Context Protocol) and ACP (the Agentic Commerce Protocol). The Shopify folder runs Shopify's example (Shopify/claude-for-commerce-examples) unchanged against a real Shopify store, so the same two agents can be seen on a platform that owns its own checkout.
What is inside each folder
| File | Role |
|---|---|
README.md |
The platform article: demo merchant, checkout models, how to get test credentials, what was verified live, troubleshooting, the processor endpoints the adapter calls |
.env.example |
Every variable the folder reads, with a comment per line. Copy it to .env in the same folder; .env is ignored by git |
first-party/run.sh and first-party/README.md |
The store's assistant: the merchant API, its storefront, and its operations portal |
third-party/run.sh and third-party/README.md |
A platform agent that does not belong to the store, shopping at it over UCP; also how to point an MCP client such as Claude Code at the merchant |
test.sh |
The checks that prove the folder works here, printed as PASS and FAIL lines and a final ALL PASS |
platforms/_lib/common.sh is shared by every script. It finds the repository root, activates the Python environment that setup.sh created, exports the folder's .env into the process (nothing is written back), and starts or stops one merchant API.
The conventions every folder follows
Set up once, from the repository root. setup.sh clones the blueprint and Shopify's example at pinned commits, creates .venv with Python 3.12, installs the web apps, derives the merchant fixtures, and assembles the skills.
./setup.sh
Copy the template, then fill in only what you have. Every value is optional.
cp platforms/stripe/.env.example platforms/stripe/.env
Without processor credentials a folder runs in simulated mode: the in-memory gateway stands in for the processor, the hosted checkout page is a local page served by the merchant API, and every flow still runs end to end. With the processor's variables set, the same merchant boots the real adapter against the processor's test environment. The merchant's GET /api/brand route reports gateway_mode as simulated or live, so a run is never mistaken for the other.
ANTHROPIC_API_KEY is what the two assistants talk through. Without it, browsing, the checkout pages, the portal widgets, the scripted platform agent, and test.sh all work; chat turns do not.
Each run.sh is run from anywhere; it changes into the repository root itself. test.sh needs no credentials. When credentials are present it adds the live checks, including the first live call per processor (scripts/psp_smoke.py), and its last line is ALL PASS (<platform>) or SOME CHECKS FAILED (<platform>) with a non-zero exit.
Each merchant owns three ports: the API, the storefront, and the portal. The third-party run needs only the API port.
The six platforms
| Folder | Demo merchant (fictional) | Vertical | API / storefront / portal | Live verification | Links |
|---|---|---|---|---|---|
stripe |
Lumen Home | home retail | 8016 / 3016 / 3116 | Verified against Stripe's test mode on 6 and 8 September 2026 | README · first party · third party |
adyen |
Aurora Escapes | travel | 8017 / 3017 / 3117 | Verified against an Adyen test merchant account on 7 and 8 September 2026 | README · first party · third party |
worldpay |
Beacon Wireless | telecom | 8018 / 3018 / 3118 | Not run live; adapter tested against documented shapes | README · first party · third party |
cybersource |
Encore Seats | ticketing | 8019 / 3019 / 3119 | Not run live; adapter tested against documented shapes | README · first party · third party |
clover |
Northstar Outfitters | outdoor retail | 8010 / 3010 / 3110 | Not run live; adapter tested against documented shapes | README · first party · third party |
shopify |
the public demo store fakestore-ai.myshopify.com |
apparel | 8004 / 3005 (no portal) | Live discovery, catalog, cart, and checkout staging on 8 September 2026 | README · first party · third party |
Every company, brand, product, and person in the five processor merchants is fictional. The Shopify store is a public demo store Shopify operates.
Which folder to open first
A merchant's product manager who wants to see both agents on one processor in the fewest steps should open the Stripe folder: it has the most live verification and a self-service sandbox that works minutes after signup. A processor team evaluating the adapter pattern should read its own folder's endpoint table, then psp_commerce/adapters/<processor>.py, whose module docstring names every call and which of them has been run live. A platform team building a shopping agent should read any third-party README; the merchant endpoints are identical across the five processor folders, and the Shopify third-party README shows the same agent against a store the reference does not control.
The root README describes the layers under these folders: the gateway protocol, the four checkout integration models, the third-party endpoints, and the model-agnostic runtime.