A platform agent shopping at Beacon Wireless, on Worldpay

Point a program that does not belong to the store at the Worldpay merchant's UCP endpoint, let it pick a plan and stage a checkout, and see what Worldpay lets a platform do from there.

What this run is

A platform agent belongs to someone other than the store. It reads Beacon Wireless' discovery document, calls the merchant's tools over UCP (Universal Commerce Protocol) carried on MCP (the Model Context Protocol), and ends with the Hosted Payment Page URL for the shopper, or with an order it paid for with a credential Worldpay accepts from a platform. The merchant also serves ACP (the Agentic Commerce Protocol). Beacon Wireless is fictional.

The scripted run

third-party/run.sh starts the merchant API on 8018 if needed, prints the brand line, and runs scripts/platform_agent.py. The telecom storefront is not started.

platforms/worldpay/third-party/run.sh

On the simulated gateway, on 8 September 2026:

merchant: Beacon Wireless · Worldpay · gateway simulated · checkout hosted
discovery: Beacon Wireless on Worldpay · UCP 2026-04-08, 2026-08-25 · handlers ['com.google.pay']
picked: Prepaid 10GB · USD 25.00 · variant gid://beacon-wireless/ProductVariant/AM-PLAN-105
cart: gid://beacon-wireless/Cart/… · total USD 25.00
checkout: gid://beacon-wireless/Checkout/cko_… · status incomplete · total 25.00
continue_url (variant 1, the shopper pays on the processor's page): http://localhost:8018/checkout/cko_…
payment handlers the merchant accepts (variant 2/3): ['com.google.pay']

The default goal is "a phone plan with plenty of data"; the scripted agent takes the first in-stock match. GOAL names something else:

GOAL="a phone with a large screen" platforms/worldpay/third-party/run.sh

With the three Worldpay variables in platforms/worldpay/.env, create_checkout calls POST /payment_pages and continue_url is a Worldpay Hosted Payment Page. That has not been run in this repository. After paying there the shopper lands on /ucp/return on the merchant, and get_checkout reports completed once the adapter's ledger has the payment (see the return-leg note in the platform README).

Letting a model drive

platforms/worldpay/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.

The platform pays by itself

platforms/worldpay/third-party/run.sh --complete gpay_demo

On the simulated gateway the last line reads platform-completed: status completed · order gid://beacon-wireless/Order/ORD-…. The simulation accepts the demo token as a com.google.pay credential because the real Worldpay adapter charges Google Pay handler payloads. Live, the adapter would send POST /api/payments with a card/wallet+googlepay instrument, which needs Google Pay enabled by the Implementation Manager and a real wallet token; 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/worldpay/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 beacon-wireless http://localhost:8018/api/ucp/mcp

claude mcp get beacon-wireless should then report it connected, and a session started there lists twelve tools under /mcp. For the one-shot form, claude -p takes an MCP configuration file; write one containing only this merchant ({"mcpServers": {"beacon-wireless": {"type": "http", "url": "http://localhost:8018/api/ucp/mcp"}}}) and pass it:

claude -p --mcp-config beacon-wireless.mcp.json --strict-mcp-config --allowedTools mcp__beacon-wireless "Using only the beacon-wireless tools, find a phone plan with at least 15GB, create a checkout for one, and report the plan, 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 (plan pricing, installments, returns)
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 plans and devices a platform indexes

The payment handlers this processor advertises

The Worldpay adapter's delegated_providers is ("worldpay", "google_pay") (psp_commerce/adapters/worldpay.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 worldpay, gateway_merchant_id MID-900-BEACON POST /api/payments with a card/wallet+googlepay instrument
com.worldpay.delegate accepted by complete_checkout (the HANDLER_PROVIDER map) though not listed in discovery POST /api/payments with a delegate instrument, Worldpay's Pay via AI Agent path

On ACP the live handler list carries dev.acp.tokenized.card with psp: worldpay and credential type delegate_token; on the simulated gateway it reads psp: mock. Worldpay's documentation describes the delegate token as the instrument for an agent platform's checkout, guest-card only, without 3-D Secure or tokenization (https://docs.worldpay.com/access/products/payments/enable-features/acp-delegate-token, read 8 September 2026); the field name the adapter sends is the item to confirm on the first Try run.