Adyen: Aurora Escapes on this reference
How a travel merchant on Adyen runs Anthropic's Claude Commerce Agents blueprint here, what an Adyen test account gives you, what was verified against Adyen on 7 and 8 September 2026, and which Checkout API calls the adapter makes.
The demo merchant
Aurora Escapes is a fictional travel seller: stays, flights, and experiences across Lisbon, Kyoto, Mexico City, Reykjavik, Marrakesh, and Queenstown, 56 products in verticals/aurora_escapes/data/catalog.json, priced from $48 for a walking tour to $2,150 for a business-class fare. Its tenders are card, Apple Pay, PayPal, Klarna pay in 3, card installments over three months for bookings above $300, and Pay by Bank, with a loyalty program called Aurora Miles and settlement in two business days. Every company, brand, product, and person is fictional; only Adyen is real.
The storefront and portal are the blueprint's vendored travel apps pointed at the reference's API (vendor/commerce-agents/examples/travel), on ports 3017 and 3117, with the merchant API on 8017. The page chrome of those apps still says "ACME Travel"; the assistant introduces itself as Aurora Concierge and the checkout link carries the merchant's name.
Checkout in the four models
| Model | What the button opens | What the Adyen adapter does |
|---|---|---|
| hosted | Adyen Hosted Checkout, Adyen's own page (test.adyen.link in test) |
POST /v72/sessions with mode: "hosted" and a returnUrl |
| server | the merchant's own page | POST /v72/paymentMethods, then POST /v72/payments with the payment method the page collected, then /payments/details for redirects and 3-D Secure |
| dropin | the merchant's page with Adyen Web Drop-in inside it | POST /v72/sessions with mode: "embedded"; the page mounts with ADYEN_CLIENT_KEY |
| link | Adyen Pay by Link | POST /v72/paymentLinks |
The adapter implements all four and scripts/psp_smoke.py adyen exercises them. Aurora Escapes runs whichever model CHECKOUT_MODEL names: build_backend in verticals/aurora_escapes/api/backend.py composes the store with that model's mixin from psp_commerce/integration/ ahead of it, so the travel storefront's checkout button opens Adyen's hosted page by default, the merchant's own page for the server and drop-in models, or a payment link.
The checkout link the traveler sees reads "Pay for your trip · Aurora Escapes"; the model behind the assistant sees only that the checkout is staged.
Getting Adyen test credentials
Read from Adyen's documentation on 8 September 2026.
- Request a free test account at https://www.adyen.com/signup. The login instructions arrive by email, and the account opens the test Customer Area at https://ca-test.adyen.com. Adyen states that a test account does not guarantee approval as a customer; how long the email takes is not documented.
- In the Customer Area open Developers, API credentials, and select the credential (named like
ws_123456@Company.[YourCompanyAccount]). Under Server settings, Authentication, API key, choose Generate API key. The new key is active immediately (https://docs.adyen.com/development-resources/api-credentials/). This needs the "Manage API credentials" or "Merchant admin" role. - The merchant account name is the one shown in the Customer Area; it goes in
ADYEN_MERCHANT_ACCOUNT. If you hold only the key, Adyen's Management API lists the accounts it can use:GET https://management-test.adyen.com/v3/merchantswith theX-API-Keyheader. - For Drop-in, on the same credential open Client settings, Authentication, Client key, Generate client key, then Add allowed origins and save; in test an origin may be
http://localhost(https://docs.adyen.com/development-resources/client-side-authentication/). - For webhooks, open Developers, Webhooks, select the standard webhook, edit, Security, Generate HMAC key, and copy it at once; it cannot be shown again (https://docs.adyen.com/development-resources/webhooks/secure-webhooks/verify-hmac-signatures).
Hosted Checkout needs Checkout API v72 or later and a standard webhook subscription; Adyen's guide creates a theme under Pay by Link, Themes. The adapter sends no themeId and the hosted session was created without one on 7 September 2026.
The variables
| Variable | Read by | Meaning |
|---|---|---|
ADYEN_API_KEY |
psp_commerce/adapters/adyen.py |
the credential's API key; with ADYEN_MERCHANT_ACCOUNT it switches the merchant to live |
ADYEN_MERCHANT_ACCOUNT |
the adapter | the merchant account name |
ADYEN_CLIENT_KEY |
the adapter (optional) | the client key for Drop-in; a placeholder without it |
ADYEN_HMAC_KEY |
psp_commerce/webhooks.py (optional) |
verifies additionalData.hmacSignature on POST /webhooks/adyen |
ANTHROPIC_API_KEY |
both assistants | the model |
CHECKOUT_MODEL |
hosted (default), server, dropin or link |
which page the checkout button opens, see above |
First party and third party
The first-party run starts Aurora Escapes with its concierge: first-party/run.sh brings up the API on 8017, the travel storefront on 3017, and the merchant app on 3117 (--all default, --merchant, --api-only). The walkthrough, from a stay to a payment on Adyen's hosted page with the documented test card and the concierge reading the booking back, is in first-party/README.md.
The third-party run starts only the API and lets a platform agent shop for a stay: scripted, or driven by Claude or another model, with --complete gpay_demo on the simulated gateway and --serve for an MCP client. .mcp.json already registers this merchant as aurora-escapes. The endpoints and the single handler Aurora Escapes advertises are in third-party/README.md.
test.sh
platforms/adyen/test.sh
It runs the pytest subset for this merchant (-k "aurora or adyen or adapters or thirdparty or demo_paths or verticals_boot", 32 of 66 tests), boots the merchant API and checks the gateway mode against the presence of ADYEN_API_KEY and ADYEN_MERCHANT_ACCOUNT, fetches the UCP discovery document and tools/list, and runs the scripted platform agent to a staged checkout. With credentials set it also runs scripts/psp_smoke.py adyen: hosted session, payment link, embedded session, /paymentMethods, a /payments authorization with Adyen's documented test encrypted card fields, and the ledger read. --skip-link and --skip-authorize exist on the smoke script for accounts where those steps are off.
== the merchant boots
Aurora Escapes · Adyen · gateway simulated · checkout hosted
PASS simulated gateway (no Adyen 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:8017/checkout/cko_…)
ALL PASS (Adyen)
What was verified live
On 8 September 2026 the whole folder was run from a fresh copy of the repository with only the READMEs as the guide: test.sh live, the first-party conversation through the API to an Adyen hosted page, the return page with a rejected sessionResult, the operations assistant, the scripted and model-driven platform agent, the ACP routes, --complete gpay_demo (Adyen answered 422 and both protocols reported the refusal), and a Claude Code one-shot against aurora-escapes that ended with a test.adyen.link address. The same day, with CHECKOUT_MODEL=server, a booking was paid end to end: the concierge staged two nights for USD 428.00, the merchant's own page authorized them through /payments with Adyen's documented test card, Adyen answered Authorised with a PSP reference, and the concierge answered "your payment went through" with the order's status card. That run found two gaps, since fixed: the merchant's own page recognized only Stripe-shaped ids, and the booking Adyen had just placed was missing from the concierge's single-order lookup.
On 7 September 2026, against an Adyen test merchant account (USD; scheme and Klarna enabled) with a company-level API credential: a hosted session whose URL is on test.adyen.link, a payment link, an embedded session, /paymentMethods, a /payments request with the documented test encrypted card that was authorised and captured, and the ledger read. Aurora Escapes booted in gateway_mode: live; a first-party chat turn staged an Adyen hosted page and the travel storefront showed the "Pay for your trip · Aurora Escapes" link; the scripted platform agent produced an Adyen continue_url over UCP.
Two corrections came out of that run and are in the adapter. A hosted session must not carry channel; Adyen answered error 14_0449 when it did. A session can only be read with the sessionResult Adyen appends to the return URL; without it Adyen answers error 29_004, so the return route hands sessionResult to the adapter before the status read, and until the shopper comes back the adapter reports the local state. In production the AUTHORISATION webhook is the record of truth either way.
Not exercised live: Drop-in was created but not mounted in a browser because the credential had no client key, and the com.google.pay handler path was not run because Google Pay was not enabled on the account.
Troubleshooting
| Symptom | Cause | What to do |
|---|---|---|
Error 14_0449 on the hosted session |
channel sent with mode: "hosted" |
the adapter omits channel; keep it out if you extend the request (Adyen's v72 specification marks it optional and does not document the rejection; the reference observed it) |
Error 29_004 reading a session |
GET /sessions/{id} needs sessionResult |
wait for the return leg /checkout/return?sessionId=…&sessionResult=…; do not poll |
gateway_mode: simulated with a key set |
ADYEN_MERCHANT_ACCOUNT is missing; both variables gate the adapter |
set both in .env |
| Drop-in does not mount | no client key, or the storefront origin is not allowed on the credential | generate the client key, add http://localhost:3017 (or your origin) under allowed origins |
complete_checkout with a Google Pay credential fails |
Google Pay is not enabled on the merchant account | enable it under Payments, Payment methods; the adapter sends paymentMethod.type: "googlepay" with the token |
| Webhook rejected | wrong HMAC key or key not hex-decoded | copy the key from the webhook's Security tab; the verifier is in psp_commerce/webhooks.py |
Adyen's test card is 4111 1111 1111 1111, expiry 03/2030, CVC 737 (https://docs.adyen.com/development-resources/test-cards-and-credentials/test-card-numbers).
The endpoints the adapter calls
All calls go to https://checkout-test.adyen.com/v72 with X-API-Key and JSON bodies. The base is the API_TEST constant in psp_commerce/adapters/adyen.py and a constructor argument; the docstring mentions an ADYEN_ENV variable, but the code reads none, so a live base (which needs the account prefix) is a code change. The module docstring is the source of this table.
| Gateway method | Adyen call | Run live 7 September 2026 |
|---|---|---|
create_checkout_session |
POST /sessions (mode: "hosted", returnUrl) |
yes |
get_checkout_session |
GET /sessions/{id}?sessionResult= plus the AUTHORISATION webhook |
yes (with sessionResult) |
create_payment_intent |
POST /paymentMethods; the reference itself is local |
yes |
authorize_payment |
POST /payments, then POST /payments/details |
yes (test encrypted card, authorised and captured) |
create_client_session |
POST /sessions (mode: "embedded") |
created; not mounted |
create_payment_link |
POST /paymentLinks; GET /paymentLinks/{id} |
yes |
authorize_delegated |
POST /payments with paymentMethod: {type: "googlepay", googlePayToken} |
not exercised |
| reads | no list endpoint in the Checkout API; the ledger is fed by AUTHORISATION, CAPTURE, NOTIFICATION_OF_CHARGEBACK, CHARGEBACK webhooks |
ledger read |
tests/test_adapters_http.py asserts each request's path, headers, and body against a mock transport with Adyen's documented response shapes, and test_webhook_verifiers checks the HMAC over the colon-joined fields.