A platform agent shopping at Encore Seats, on CyberSource
Point a program that does not belong to the store at the CyberSource merchant's UCP endpoint, let it find tickets and stage a checkout, and see what CyberSource lets a platform do from there.
What this run is
A platform agent belongs to someone other than the store. It reads Encore Seats' discovery document, calls the merchant's tools over UCP (Universal Commerce Protocol) carried on MCP (the Model Context Protocol), and ends with a Pay by Link URL for the shopper, or with an order it paid for with a credential CyberSource accepts from a platform. The merchant also serves ACP (the Agentic Commerce Protocol). Encore Seats is fictional.
The scripted run
third-party/run.sh starts the merchant API on 8019 if needed, prints the brand line, and runs scripts/platform_agent.py. The ticketing storefront is not started.
platforms/cybersource/third-party/run.sh
On the simulated gateway, on 8 September 2026, the run showed a behavior the other merchants do not: the first match was a resale pair sold in sets of two, so the agent read the store's error, retried with the right quantity, and went on.
merchant: Encore Seats · CyberSource · gateway simulated · checkout hosted
discovery: Encore Seats on CyberSource · UCP 2026-04-08, 2026-08-25 · handlers ['com.google.pay']
picked: Resale · The Synth-Pop Act … Upper Terrace (pair) · USD 72.00 · variant gid://encore-seats/ProductVariant/AT-RSL-202
the store sells this in sets of 2; asking for 2
cart: gid://encore-seats/Cart/… · total USD 144.00
checkout: gid://encore-seats/Checkout/cko_… · status incomplete · total 72.00
continue_url (variant 1, the shopper pays on the processor's page): http://localhost:8019/checkout/cko_…
payment handlers the merchant accepts (variant 2/3): ['com.google.pay']
The default goal is "two tickets to a show this month". GOAL names something else:
GOAL="philharmonic season opener" platforms/cybersource/third-party/run.sh
With the three CyberSource variables in platforms/cybersource/.env, create_checkout calls POST /ipl/v2/payment-links and continue_url is the Pay by Link page. That has not been run in this repository. After paying there, get_checkout makes the adapter read GET /ipl/v2/payment-links/{id} and reports completed when the link is paid.
Letting a model drive
platforms/cybersource/third-party/run.sh --model
--model hands the merchant's tools to a model through the reference's provider contract and prints every call. Anthropic is the default (claude-sonnet-5, ANTHROPIC_API_KEY); --provider openai (gpt-5, OPENAI_API_KEY), --provider gemini (gemini-2.5-pro, GOOGLE_API_KEY), and --base-url http://localhost:11434/v1 for Ollama drive the same tools. A model id after --model overrides the default. The model is told to put one item in a cart, create a checkout, report the item, total, continue_url, and handlers, and never claim to have paid; a model reads the "sold in sets" error the same way the script does.
The platform pays by itself
platforms/cybersource/third-party/run.sh --complete gpay_demo
On the simulated gateway the last line reads platform-completed: status completed · order gid://encore-seats/Order/ORD-…. The simulation accepts the demo token as a com.google.pay credential because the real CyberSource adapter charges Google Pay handler payloads. Live, the adapter would send POST /pts/v2/payments with the payload as paymentInformation.fluidData and paymentSolution: "012"; a demo token is refused, and the script prints the refusal with continue_url as the path to take.
An MCP client such as Claude Code
platforms/cybersource/third-party/run.sh --serve
keeps the merchant up and prints the endpoints. The repository's .mcp.json registers lumen-home and aurora-escapes; this merchant is added with one command, from the directory where Claude Code will run:
claude mcp add --transport http encore-seats http://localhost:8019/api/ucp/mcp
claude mcp get encore-seats should then report it connected, and /mcp in a session lists twelve tools. For the one-shot form, write an MCP configuration file containing only this merchant ({"mcpServers": {"encore-seats": {"type": "http", "url": "http://localhost:8019/api/ucp/mcp"}}}) and pass it:
claude -p --mcp-config encore-seats.mcp.json --strict-mcp-config --allowedTools mcp__encore-seats "Using only the encore-seats tools, find two lower bowl tickets to a show in the next month, create a checkout, and report the seats, the total, the continue_url and the payment handlers. Do not claim to have paid."
The Claude Code flow was verified against the Stripe merchant on 6 and 7 September 2026; every merchant here serves the same endpoint from psp_commerce/thirdparty/ucp.py.
The endpoints on the merchant
| Endpoint | Protocol | Purpose |
|---|---|---|
GET /.well-known/ucp |
UCP discovery | versions, the MCP endpoint, capabilities, payment_handlers, store.completion |
POST /api/ucp/mcp |
UCP over MCP | search_catalog, get_product, lookup_catalog, create_cart, get_cart, update_cart, create_checkout, update_checkout, get_checkout, cancel_checkout, complete_checkout, get_order |
POST /api/mcp |
storefront MCP | search_shop_policies_and_faqs (holds, validity guarantee, transfers) |
GET /ucp/return |
return leg | where the processor sends the shopper after a platform-created checkout |
POST /acp/checkout_sessions and /{id}, /{id}/complete, /{id}/cancel |
ACP 2026-04-17 | a session with checkout_url and capabilities.payment.handlers |
GET /acp/feed.json |
ACP feed | the listings a platform indexes |
The payment handlers this processor advertises
The CyberSource adapter's delegated_providers is ("visa", "google_pay") (psp_commerce/adapters/cybersource.py). psp_commerce/thirdparty/ucp.py turns that into one advertised UCP handler and maps a second handler id for completion.
| Handler | Where | What the adapter does with it |
|---|---|---|
com.google.pay (2026-01-23) |
advertised in payment_handlers; PAYMENT_GATEWAY tokenization, gateway cybersource, gateway_merchant_id MID-950-ENCORE |
POST /pts/v2/payments with paymentInformation.fluidData and paymentSolution: "012" |
com.visa.intelligent_commerce |
accepted by complete_checkout (the HANDLER_PROVIDER map) though not listed in discovery |
a Visa Intelligent Commerce credential charged as the transient token, marked agent-initiated |
On ACP the live handler list carries dev.acp.tokenized.card with psp: visa and credential type delegate_token; on the simulated gateway it reads psp: mock. Neither delegated path has been run against CyberSource's test API.