The store's assistant at Beacon Wireless, on Worldpay
Run the fictional Beacon Wireless carrier with its assistant and its operations assistant, pick a plan, reach the "Pay and activate" link, and see the assistant read the order back.
What this run is
The store's assistant is Beacon Assistant, the blueprint's shopping agent over the telecom example's plans, devices, and add-ons, with the subscriber's account, the plan matrix, and the disclosures the example carries, plus the tender card the processor layer adds. Worldpay takes the payment on a Hosted Payment Page. The operations assistant in the merchant app answers from the processor's numbers.
Running it
Set up once with ./setup.sh, copy platforms/worldpay/.env.example to platforms/worldpay/.env, and put ANTHROPIC_API_KEY in it. WORLDPAY_USERNAME, WORLDPAY_PASSWORD, and WORLDPAY_ENTITY together switch the run to Worldpay's Try environment; without all three it is simulated.
platforms/worldpay/first-party/run.sh
The script prints "Worldpay: live (test environment)" or "Worldpay: simulated", then starts the API on 8018, the storefront on 3018, and the merchant app on 3118. --all is the default.
platforms/worldpay/first-party/run.sh --merchant
starts the API and the merchant app;
platforms/worldpay/first-party/run.sh --api-only
starts the API alone.
| Surface | URL |
|---|---|
| Telecom storefront with Beacon Assistant | http://localhost:3018 |
| Merchant app with the operations assistant | http://localhost:3118 |
| Merchant API | http://localhost:8018 |
The storefront and merchant app are the blueprint's vendored telecom apps; their page chrome reads "ACME Mobile" while the assistant, the brand route, and the checkout link carry Beacon Wireless.
A scripted walkthrough
This merchant has not been run against Worldpay's Try environment; the walkthrough below is the simulated run as checked on 8 September 2026, with the live step described from the adapter's code.
- Ask about plans: "I keep buying top-ups; what plan fits about 15GB a month?" (the first of the storefront's starter prompts). The assistant searches the plans; the catalog has Plus 15GB at $50 a month between the $35 Essential 5GB and the $65 Unlimited.
- Add it: "Add that plan." The panel beside the conversation shows the line and the total.
- Ask how to pay: "Can I pay for a new phone in installments, and does autopay get a discount?" The tender card shows device installments over 24 months for purchases above $200, Pay by Bank with its autopay discount, Apple Pay, Google Pay, and card. The assistant names the tender asked about and lets the card carry the figures.
- Check out: "Set up checkout." The assistant stages the order with Worldpay. Live, this is a
POST /payment_pagescall whose responseurlis a Hosted Payment Page; the model sees only that the checkout is staged. The conversation shows a link labeled "Pay and activate · Beacon Wireless". - Pay. Live, the link opens Worldpay's page. Worldpay's Try test cards for the Payments API are
4000000000002701with cardholder nameAUTHORISED; the Card Payments API documents4444333322221111. Which set the hosted page accepts was not checked here. - Return. The adapter's
resultURLssend the shopper tohttp://localhost:8018/checkout/return?result=success&checkout_id=<reference>, and the return route finds the session by that reference. The adapter marks the session completed once its ledger holds the payment, which on a live run arrives through Worldpay's events webhook; the reference implements webhook routes for Stripe and Adyen only, so a live Worldpay deployment adds that route (or a payment query on return) first, and until then the return page reports the payment as not finished. - Ask about it: "Is my order in?" The assistant answers from the queued note and the order list once the status poll or the return page has observed the payment.
What the simulated mode shows instead
Without the Worldpay variables, steps 1 to 4 are the same and the link opens a local page at http://localhost:8018/checkout/cko_…, headed "Beacon Wireless, Secure checkout · Worldpay", with the order and one button per tender carrying the same figures as the tender card. Pressing a tender completes a demo payment; the storefront's poll sees completed, the note is queued, and step 7 works unchanged. The page states that the assistant which staged the checkout never sees it and cannot press its buttons.
The operations assistant in the merchant app
Open http://localhost:3118. The merchant app is the telecom example's, with its subscriber and plan views and the operations assistant on the side. The overview's payments block comes from the gateway's payments_summary (verticals/beacon_wireless/api/main.py), so the assistant answers "How are payments looking this week?" with settled volume, authorization rate, agent-initiated share, and open disputes, and follows the payments-operations skill in psp_commerce/skills/merchant/payments-operations/SKILL.md: figure first, then the window, then the deadline or action.
Its metric names are settled_volume, auth_rate, dispute_rate, chargebacks, agent_initiated_share, and tender_mix:<tender> (tender_mix:pay_by_bank is the one to ask about at a carrier with an autopay discount). Open disputes appear as order issues with a reason code and a deadline; transactions, settlements, and disputes are the SQL tables for joins. On a live account, transactions come from Payment Queries (GET /paymentQueries/payments) and the settlement and dispute rows from the ledger, since those are report files at Worldpay. Nothing in the conversation moves money; a dispute response is described as the next step in Worldpay's tools.
Stopping
Ctrl-C stops all three processes. A busy port 8018 means a previous run is still up.