Worldpay: Beacon Wireless on this reference

How a telecom merchant on Access Worldpay runs Anthropic's Claude Commerce Agents blueprint here, where Access Worldpay credentials come from, what the adapter sends to the Try environment, and what has and has not been run against it.

The demo merchant

Beacon Wireless is a fictional carrier: five plans from the $25 Prepaid 10GB to the $85 Unlimited Plus, nine devices from the $249 Beacon Phone 3 to the $1,199 Beacon Phone 5 Max, three home fiber tiers, and eight add-ons, 25 products in verticals/beacon_wireless/data/catalog.json. Its tenders are card, Pay by Bank with an autopay discount, device installments over 24 months for purchases above $200, Apple Pay, and Google Pay; it runs no loyalty program. Every company, brand, product, and person is fictional; only Worldpay is real.

The storefront and merchant app are the blueprint's vendored telecom apps pointed at the reference's API (vendor/commerce-agents/examples/telecom), on ports 3018 and 3118, with the merchant API on 8018. Their page chrome reads "ACME Mobile"; the assistant is Beacon Assistant, and the checkout link reads "Pay and activate · Beacon Wireless".

Checkout in the four models

Model What the button opens What the Worldpay adapter does
hosted a Worldpay Hosted Payment Page POST /payment_pages with the transaction reference, merchant.entity, narrative, value, and resultURLs; the response url is the button
server the merchant's own page POST /api/payments with a paymentInstrument of type card/checkout (the Checkout SDK's session href) or a verified token; settle through the payments:settle link
dropin the merchant's page with Access Checkout hosted fields the page mounts with WORLDPAY_CHECKOUT_ID and the SDK at https://try.access.worldpay.com/access-checkout/v2/checkout.js; completion charges the session href through /api/payments
link the same Hosted Payment Page URL, sent as a link POST /payment_pages
Shopper Assistant (the model) Store server PSP hosted page “check out” checkout(note) create_checkout_session(lines, customer,return_url) checkout_url · expires in 15 min checkout card + button (URL added after the model's call) opens the page · picks a tender · pays redirect + webhook: order · transaction next turn: “the cart is now an order” PCI: SAQ A · the PSP renders, collects, authorizes · the store learns by webhook
The processor renders, collects and authorizes. The store holds no card data. This is the model the first cut of this reference assumed, and the one Clover, Adyen, Stripe and Worldpay each create with a single call.

The adapter implements all four and scripts/psp_smoke.py worldpay exercises them. Beacon Wireless runs whichever model CHECKOUT_MODEL names: build_backend in verticals/beacon_wireless/api/backend.py composes the store with that model's mixin from psp_commerce/integration/ ahead of it, so the telecom storefront's checkout button opens a Hosted Payment Page by default, the merchant's own page for the server and drop-in models, or a payment link.

Getting Access Worldpay credentials

Read from Worldpay's documentation on 8 September 2026. There are two tracks, and neither is a developer-only sandbox signup.

  1. Enterprise merchants get their Access Worldpay credentials from their Worldpay Implementation Manager; there is no self-service path (https://docs.worldpay.com/access/products/reference/api-principles).
  2. Merchants on Worldpay eCommerce (the SMB product) sign in to the Dashboard, open Developer Tools, API Credentials, and choose Try mode for the Try API username and password; Access Checkout there gives the Checkout ID for the SDK (https://docs.worldpay.com/access/products/smb/plugins/woocommerce, https://docs.worldpay.com/access/products/checkout/web).
  3. The entity (merchant.entity) is an identifier Worldpay provides during onboarding; Worldpay's example value is default, and SMB users find theirs under Developer Tools, usually prefixed PO. The same entity serves Try and Live (https://docs.worldpay.com/access/products/card-payments/authorize-a-payment).
  4. Authentication is HTTP basic with the username and password; one credential set covers every Access API, with separate sets for Try and Live.
  5. The events webhook's Event-Signature header and its shared secret are enabled by the Implementation Manager (https://docs.worldpay.com/access/products/events/signature); webhook URLs are configured by the Implementation Manager for Enterprise or in the dashboard for SMB.

Whether Try credentials can be obtained without a merchant contract, and whether every Try credential has Hosted Payment Pages switched on, is not stated in the pages read; treat both as questions for your Worldpay contact.

The variables

Variable Read by Meaning
WORLDPAY_USERNAME, WORLDPAY_PASSWORD psp_commerce/adapters/worldpay.py the Try credentials, sent as basic auth
WORLDPAY_ENTITY the adapter the entity reference; the template's default is Worldpay's documentation example
WORLDPAY_CHECKOUT_ID the adapter (optional) the Access Checkout SDK identity for the drop-in model; a placeholder without it
ANTHROPIC_API_KEY both assistants the model
CHECKOUT_MODEL hosted (default), server, dropin or link which page the checkout button opens, see above

All three Worldpay variables must be set for the adapter to switch on (available() in the adapter).

First party and third party

The first-party run starts Beacon Wireless with its assistant: first-party/run.sh brings up the API on 8018, the telecom storefront on 3018, and the merchant app on 3118 (--all default, --merchant, --api-only). The walkthrough, from a plan question to the "Pay and activate" link and the assistant reading the order back, is in first-party/README.md.

The third-party run starts only the API and lets a platform agent shop for a plan: scripted, or driven by a model, with --complete gpay_demo on the simulated gateway and --serve for an MCP client such as Claude Code, registered with claude mcp add. The endpoints and the handler Beacon Wireless advertises are in third-party/README.md.

test.sh

platforms/worldpay/test.sh

It runs the pytest subset for this merchant (-k "beacon or worldpay or adapters or thirdparty or demo_paths or verticals_boot", 32 of 66 tests), boots the API and checks the gateway mode against the three Worldpay variables, fetches UCP discovery and tools/list, and runs the scripted platform agent to a staged checkout. With the variables set it adds scripts/psp_smoke.py worldpay: a Hosted Payment Page, a second page as the payment link, a client session, a payment intent, an authorization on /api/payments with the adapter's test instrument, and a Payment Queries read, stopping at the first error with Worldpay's own message.

== the merchant boots
   Beacon Wireless · Worldpay · gateway simulated · checkout hosted
PASS  simulated gateway (no Worldpay credentials set)
== UCP discovery and the MCP handshake
PASS  discovery document
PASS  tools/list
== a scripted third-party agent shops here
PASS  platform agent staged a checkout (continue_url (variant 1, the shopper pays on the processor's page): http://localhost:8018/checkout/cko_…)
ALL PASS (Worldpay)

What was verified, and what was not

The Worldpay adapter has not been run against the Try environment in this repository; no credentials were in hand. It is a real HTTP client whose requests are asserted in tests/test_adapters_http.py::test_worldpay_requests against a mock transport answering with the shapes Worldpay documents. The simulated run of this folder, including the platform agent and the ACP session, was checked on 8 September 2026. scripts/psp_smoke.py worldpay is the first live run, and the items below are what it will settle.

Troubleshooting

Symptom or question What the code does What Worldpay's documentation says (read 8 September 2026)
The /api/payments request is rejected on version the adapter sends Content-Type: application/json with WP-Api-Version: 2024-06-01 (PAYMENTS_HEADERS), as the Payments API page describes (https://docs.worldpay.com/access/products/payments, read 8 September 2026); Hosted Payment Pages keep their application/vnd.worldpay.payment_pages-v1.hal+json media type if Worldpay has moved the version on, change PAYMENTS_API_VERSION in psp_commerce/adapters/worldpay.py
A delegate token is refused the adapter sends instruction.method: "card" with paymentInstrument: {type: "delegate", sessionHref: …}, the shape the Pay via AI Agent page documents (https://docs.worldpay.com/access/products/payments/enable-features/acp-delegate-token, read 8 September 2026) the value must be the session href the agent received from Worldpay; a made-up token is refused, which is the correct outcome
The return page says the payment is not finished resultURLs send the shopper to /checkout/return?result=success&checkout_id=<reference>, and the route finds the session by that reference; the adapter marks it completed only once its ledger holds the payment the ledger is fed by the events webhook, and the reference implements webhook routes for Stripe and Adyen only (psp_commerce/webhooks.py), so a live Worldpay deployment adds that route or a payment query on return
Google Pay handler payloads fail sent as card/wallet+googlepay with walletToken Google Pay must be enabled by the Implementation Manager, who also supplies the Gateway Merchant ID (https://docs.worldpay.com/access/products/wallets/googlepay)
Which test card to use on the Hosted Payment Page the adapter's server-side test path uses card/plain the Payments API Try cards are 4000000000002701 (Visa) with cardHolderName AUTHORISED, REFUSED, SOFT_DECLINED and others; the Card Payments API documents 4444333322221111 (https://docs.worldpay.com/access/products/payments/testing, https://docs.worldpay.com/access/products/card-payments/testing). Which set the hosted page accepts was not run here
gateway_mode: simulated with credentials set one of the three variables is empty all of WORLDPAY_USERNAME, WORLDPAY_PASSWORD, WORLDPAY_ENTITY are required

The endpoints the adapter calls

All calls go to https://try.access.worldpay.com with basic auth. The module docstring of psp_commerce/adapters/worldpay.py is the source.

Gateway method Worldpay call Status
create_checkout_session, create_payment_link POST /payment_pages (application/vnd.worldpay.payment_pages-v1.hal+json) with transactionReference, merchant.entity, narrative.line1, value, description, resultURLs tested against documented shape
get_checkout_session the adapter's ledger, fed by the events webhook and GET /paymentQueries/payments tested
create_payment_intent a local reference; the charge is POST /api/payments tested
authorize_payment POST /api/payments with instruction.value, instruction.narrative, paymentInstrument (card/checkout session href, verified token, or card/plain in Try), then the payments:settle link tested
create_client_session no call; the Checkout SDK identity and script URL are handed to the page tested
complete_client_session POST /api/payments with the SDK's session href tested
authorize_delegated POST /api/payments with paymentInstrument.type delegate (Pay via AI Agent) or card/wallet+googlepay tested; field names to confirm
transactions GET /paymentQueries/payments?startDate=&endDate=&entityReferences= (Accept: application/vnd.worldpay.payment-queries-v1.hal+json) tested

Payment Queries carry data from 25 June 2024 onward with up to a 60-second lag (https://docs.worldpay.com/access/products/payment-queries). Disputes and settlement detail come from Worldpay's Disputes API and reconciliation reports; the adapter's ledger stands in for them here.