Payment processors: what each adapter calls, and what was verified
One section per processor (Stripe, Adyen, Worldpay, CyberSource, Clover): the demo merchant, the endpoints the adapter calls for each checkout model and for reads, how to get test credentials, the variables to set, what was run live and when, what a fresh account does not enable, and how webhooks are verified.
Anthropic's Claude Commerce Agents blueprint leaves payment to the merchant: its checkout_handoff returns a URL the storefront renders as a button, and the model sees only a staged confirmation. This reference implementation fills that gap with a processor-neutral layer, psp_commerce, and one adapter per processor, each a real HTTP client over the processor's documented API. Stripe and Adyen have been run against the processor's test environment; Worldpay, CyberSource, and Clover have been tested against the documented request and response shapes with a mock transport and are waiting for a first live run.
The five demo merchants are fictional: Lumen Home (Stripe), Aurora Escapes (Adyen), Beacon Wireless (Worldpay), Encore Seats (CyberSource), and Northstar Outfitters (Clover). How a platform agent shops at them is in 04-third-party-agents.md; Shopify, where a processor is a payments app rather than a page, is in 06-shopify.md.
The gateway protocol every adapter implements
psp_commerce/gateway.py defines PaymentGateway, a structural protocol: a processor plugs in by having its methods, and nothing subclasses anything. The methods follow the four ways a merchant can integrate a processor's checkout, chosen per merchant with CHECKOUT_MODEL.
CHECKOUT_MODEL |
Gateway methods | What the shopper sees |
|---|---|---|
hosted (default) |
create_checkout_session returns a CheckoutSession with checkout_url; get_checkout_session reads it back |
the processor's page |
server |
create_payment_intent returns a PaymentIntent; authorize_payment charges it with what the merchant's page collected |
the merchant's own page at /store/checkout/{id} |
dropin |
create_client_session returns a ClientSession with client_key, payment_methods, and session_data; complete_client_session records the component's completion |
the processor's component inside the merchant's page |
link |
create_payment_link returns a PaymentLink with url |
a processor-hosted link |
Two more groups complete the contract. authorize_delegated(token, provider) charges a credential a platform agent presents (a Google Pay payload, a shared payment token, a delegate token) and raises DelegatedCredentialUnsupported when the processor has no path for it. The reads a merchant agent needs (transactions, disputes, settlement_batches, metric_series, payments_summary) and the server-authored tender_options complete the list.
psp_commerce/adapters/_base.py supplies the shared parts: ProcessorClient, a small synchronous httpx client with a per-request header hook for signature schemes and one error type carrying the processor's status and body; Ledger, the adapter's own record of what it created and what the processor reported back by response or webhook; and BaseAdapter, the reporting over that ledger. Where a processor has no list endpoint for a read, the ledger stands in.
verticals/registry.py::gateway_for returns the merchant's adapter when the adapter's available() sees its environment variables, and the simulated gateway otherwise; GATEWAY_MODE=simulated forces the simulation even when keys are set. Every merchant's /api/brand reports gateway_mode as live or simulated. Keys live in the process environment or a platform folder's .env (gitignored); nothing writes them to disk.
The simulated gateway
psp_commerce/adapters/mock.py is the gateway every demo and test runs on without credentials. MockGateway extends the blueprint-side SimulatedGateway with all four checkout models, a local hosted page at /checkout/{cko_…}, a pay-by-link page at /pay/{plink_…}, and deterministic transactions, settlements, and disputes. It accepts delegated credentials by documented prefix (spt_, gpay_, dlg_, vic_, agentpay_, pp_agent_, ucp_, and tok_ or test_ for its own), and it asks the real adapter of the processor it stands in for (simulated_processor) which providers that adapter could charge, refusing the rest.
The return leg and the webhooks
On the simulated gateway the hosted page is local, so the storefront polls <checkout_url>/status. On a live processor the checkout URL is the processor's page, so the storefront polls checkout_status_url on the merchant API instead (verticals/_host.py::status_url_for), and the processor's success URL lands on GET /checkout/return (commerce_core/hosted_checkout.py). That route accepts Stripe's session_id, Adyen's sessionId and sessionResult, and a plain checkout_id from the others; it reads the session from the processor, records the order, and queues one note per session for the store's assistant to read on its next turn (tests/test_demo_paths.py::test_return_leg_notifies_the_assistant_once).
psp_commerce/webhooks.py mounts POST /webhooks/stripe and POST /webhooks/adyen on every merchant API; on the simulated gateway they answer 404, and without the secret 503. Stripe's verifier checks Stripe-Signature (t and v1, an HMAC-SHA256 over "<t>.<body>" with the endpoint secret) with a 300-second tolerance, then records checkout.session.completed, payment_intent.succeeded, and charge.dispute.created on the ledger. Adyen's verifier recomputes additionalData.hmacSignature (base64 of an HMAC-SHA256 over the colon-joined pspReference:originalReference:merchantAccountCode:merchantReference:value:currency:eventCode:success with the hex-decoded key), records AUTHORISATION, CAPTURE, NOTIFICATION_OF_CHARGEBACK, and CHARGEBACK, and replies [accepted]. Both are checked in tests/test_adapters_http.py::test_webhook_verifiers. Worldpay, CyberSource, and Clover carry only the pointer in their endpoints["webhook"] entry.
The first live run for any processor is one script. It creates a hosted checkout session, a payment link, a drop-in client session, and a payment intent, authorizes a test instrument where the adapter documents one, lists transactions, and stops at the first error with the processor's own message.
python scripts/psp_smoke.py stripe
Stripe: Lumen Home
Lumen Home is the blueprint's retail example on the Stripe adapter (psp_commerce/adapters/stripe.py), with the reference's own storefront and portal: API 8016, storefront 3016, portal 3116. Every request goes to https://api.stripe.com/v1 as form-encoded data with Authorization: Bearer <secret key>, an Idempotency-Key on writes, and Stripe-Version: 2026-03-25.dahlia.
| Method | Endpoint |
|---|---|
create_checkout_session, get_checkout_session |
POST /v1/checkout/sessions with ui_mode=hosted_page, mode=payment, line_items[i][price_data], success_url, client_reference_id, returning url; GET /v1/checkout/sessions/{id} for status and payment_status |
create_payment_intent |
POST /v1/payment_intents with automatic_payment_methods[enabled]=true and [allow_redirects]=never |
authorize_payment |
POST /v1/payment_intents/{id}/confirm with payment_method (Stripe's documented pm_card_visa in test mode when the page supplied none) and a return_url; /capture for a later capture |
create_client_session |
POST /v1/checkout/sessions with ui_mode=embedded_page and return_url, returning client_secret |
create_payment_link |
POST /v1/prices then POST /v1/payment_links, returning url |
authorize_delegated |
POST /v1/payment_intents with confirm=true and either payment_method_data[shared_payment_granted_token] (under Stripe-Version: 2026-04-22.preview) or payment_method_data[card][token] for a Google Pay gateway token |
transactions, disputes, settlement_batches |
GET /v1/payment_intents, GET /v1/disputes, GET /v1/payouts |
Test credentials. Sign up at https://stripe.com/register; sandbox keys work immediately, because sandbox payments are not processed by card networks (https://docs.stripe.com/keys and https://docs.stripe.com/testing, read on 8 September 2026). Keys are at Dashboard > Developers > API keys: the publishable key pk_test_…, the secret key sk_test_…, and restricted keys rk_test_…. The webhook signing secret whsec_… comes from Workbench > Webhooks > Create an event destination, or from stripe listen --forward-to localhost:8016/webhooks/stripe, which prints it (https://docs.stripe.com/webhooks). The test card is 4242 4242 4242 4242 with any future expiry and any CVC.
Variables (platforms/stripe/.env.example): STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, ANTHROPIC_API_KEY, CHECKOUT_MODEL. The adapter also reads STRIPE_PUBLISHABLE_KEY for the drop-in model's client key and falls back to a placeholder without it.
Verified live on 6 September 2026, test mode. scripts/psp_smoke.py stripe created a hosted Checkout Session whose page renders, a Payment Link, an embedded Checkout Session with a client_secret, and a PaymentIntent confirmed with pm_card_visa that reported succeeded; the reads answered. Lumen Home booted in gateway_mode: live with Stripe URLs on the checkout card, the cart panel, the UCP continue_url, and the ACP checkout_url; a first-party chat turn staged a Stripe session; the return leg /checkout/return?session_id= recorded the order; the platform agent, scripted and Claude-driven, produced a Stripe continue_url; and an ACP create returned a Stripe checkout_url with the dev.acp.tokenized.card handler.
Two corrections came out of that run. Every request pins Stripe-Version: 2026-03-25.dahlia, because the account's default version answered Invalid ui_mode: hosted_page; the hosted_page and embedded_page values exist from that version, the newest release is 2026-08-26.dahlia, and monthly releases stay backward-compatible within a major (https://docs.stripe.com/changelog). Server-side PaymentIntents set automatic_payment_methods[allow_redirects]=never and the confirm call passes a return_url, because Stripe otherwise refuses a server-side confirm while redirect-based methods are enabled.
Not enabled by default. Shared payment tokens are a private preview with a waitlist on the agent side (https://docs.stripe.com/agentic-commerce, read on 8 September 2026); the seller-side calls carry Stripe-Version: 2026-04-22.preview and need a Stripe profile and acceptance of the preview terms. A charge with a placeholder token drew "No such shared_payment_token", which confirmed the parameter name payment_method_data[shared_payment_granted_token]; a real token needs a platform to mint it. The com.google.pay handler needs a real Google Pay payload tokenized with Stripe as the gateway.
Webhooks. checkout.session.completed, payment_intent.succeeded, and charge.dispute.created, verified with STRIPE_WEBHOOK_SECRET as described above.
./platforms/stripe/test.sh
Adyen: Aurora Escapes
Aurora Escapes is the blueprint's travel example on the Adyen adapter (psp_commerce/adapters/adyen.py), served by the vendored travel apps: API 8017, storefront 3017, portal 3117. Requests go to Checkout API v72 at https://checkout-test.adyen.com/v72 as JSON with X-API-Key and an Idempotency-Key.
| Method | Endpoint |
|---|---|
create_checkout_session, get_checkout_session |
POST /v72/sessions with mode: hosted and returnUrl, returning url, id, sessionData, and expiresAt; GET /v72/sessions/{id}?sessionResult=, with the AUTHORISATION webhook as the record of truth |
create_payment_intent |
POST /v72/paymentMethods (the intent is a local reference) |
authorize_payment |
POST /v72/payments with the paymentMethod the page collected (in test, the documented test_-prefixed encrypted card fields), then POST /v72/payments/details for redirects and 3-D Secure |
create_client_session |
POST /v72/sessions with mode: embedded and channel: Web, returning id and sessionData for Web Drop-in |
create_payment_link |
POST /v72/paymentLinks, returning url; GET /v72/paymentLinks/{id} |
authorize_delegated |
POST /v72/payments with paymentMethod: {type: googlepay, googlePayToken} |
transactions, disputes, settlement_batches |
the ledger, fed by AUTHORISATION, CAPTURE, and chargeback webhooks; Adyen has no list-payments endpoint in the Checkout API, and settlement detail is a report |
Test credentials. A free test account at https://www.adyen.com/signup gives access to the test Customer Area at https://ca-test.adyen.com (read on 8 September 2026). The API key is generated at Customer Area > Developers > API credentials > select the credential > Server settings > Authentication > API key; the client key for Drop-in is on the same page under Client settings and needs the storefront's origin among the allowed origins (https://docs.adyen.com/development-resources/api-credentials/ and https://docs.adyen.com/development-resources/client-side-authentication/). The webhook HMAC key comes from Developers > Webhooks > select the webhook > Security > Generate (https://docs.adyen.com/development-resources/webhooks/secure-webhooks/verify-hmac-signatures). The test card is Visa 4111 1111 1111 1111, expiry 03/2030, CVC 737 (https://docs.adyen.com/development-resources/test-cards-and-credentials/test-card-numbers).
Variables (platforms/adyen/.env.example): ADYEN_API_KEY, ADYEN_MERCHANT_ACCOUNT (the merchant account name shown in the Customer Area), optional ADYEN_CLIENT_KEY for Drop-in, optional ADYEN_HMAC_KEY for /webhooks/adyen, ANTHROPIC_API_KEY, CHECKOUT_MODEL.
Verified live on 7 September 2026, test merchant account. Hosted session (a test.adyen.link URL that renders), payment link, embedded session, /paymentMethods, /payments with the documented test encrypted card (authorised and captured), and the ledger read all passed. Aurora Escapes booted live; a first-party chat turn staged an Adyen hosted page, shown in the travel storefront as a "Pay for your trip · Aurora Escapes" link; the scripted platform agent shopped over UCP and received the Adyen page as continue_url.
Two corrections came out of the run. A hosted session must not carry channel: Adyen answered error 14_0449 when it did, so the adapter sends channel: Web only on embedded sessions; Adyen's v72 OpenAPI marks channel optional and does not document the rejection, so this is an observed behavior. And a session can be read only with the sessionResult Adyen appends to the return URL (error 29_004 without it), so /checkout/return?sessionId=&sessionResult= hands it to record_session_result before the status read; until the shopper is back, the adapter reports its local state, and the AUTHORISATION webhook remains the record of truth. The adapter sends no themeId, and that run created hosted sessions without one.
Not enabled by default. Drop-in needs a client key on the credential and the storefront origin allowed, which the credential used on 7 September lacked, so the embedded session was created and never mounted in a browser. The com.google.pay handler needs Google Pay enabled at Customer Area > Payments > Payment methods, which it was not, so that path was not exercised.
Webhooks. Standard webhooks with additionalData.hmacSignature, verified with ADYEN_HMAC_KEY as described above; the reply is [accepted].
./platforms/adyen/test.sh
Worldpay: Beacon Wireless
Beacon Wireless is the blueprint's telecom example on the Worldpay adapter (psp_commerce/adapters/worldpay.py), served by the vendored telecom apps: API 8018, storefront 3018, portal 3118. Requests go to the Try environment at https://try.access.worldpay.com with HTTP basic authentication.
| Method | Endpoint |
|---|---|
create_checkout_session, create_payment_link |
POST /payment_pages (Hosted Payment Pages) with transactionReference, merchant.entity, narrative, value, description, and six resultURLs, returning url |
get_checkout_session |
the ledger, fed by the Events webhook and Payment Queries |
authorize_payment |
POST /api/payments with instruction.value, instruction.narrative, and a paymentInstrument (card/checkout with the Checkout SDK's session href, or card/plain for a test card), expecting outcome: authorized, then the payments:settle link |
create_client_session, complete_client_session |
a local record carrying the Checkout SDK identity (WORLDPAY_CHECKOUT_ID) and the SDK script URL; completion is POST /api/payments with the SDK's session href |
authorize_delegated |
POST /api/payments with instruction.method: card and a delegate instrument carrying sessionHref, or card/wallet+googlepay with walletToken |
transactions |
GET /paymentQueries/payments with startDate, endDate, entityReferences, reading _embedded.payments |
Test credentials. Two tracks (read on 8 September 2026). Enterprise merchants get Access Worldpay credentials from a Worldpay Implementation Manager, with no self-service (https://docs.worldpay.com/access/products/reference/api-principles). Merchants on Worldpay eCommerce find Try-mode API credentials in the Dashboard under Developer Tools > API Credentials, the Checkout ID under Access Checkout, and the entity under Developer Tools (https://docs.worldpay.com/access/products/smb/plugins/woocommerce). Whether Try credentials exist without a merchant contract is not documented. Try test cards for /api/payments are Visa 4000000000002701 and Mastercard 5200000000002235, with cardHolderName magic values such as AUTHORISED and REFUSED (https://docs.worldpay.com/access/products/payments/testing).
Variables (platforms/worldpay/.env.example): WORLDPAY_USERNAME, WORLDPAY_PASSWORD, WORLDPAY_ENTITY, optional WORLDPAY_CHECKOUT_ID for the drop-in model, ANTHROPIC_API_KEY, CHECKOUT_MODEL.
Not run live. The adapter is tested against the documented shapes in tests/test_adapters_http.py::test_worldpay_requests and has not been run against a Try environment in this repository. The request shapes follow the Payments API pages read on 8 September 2026: POST /api/payments carries Content-Type: application/json and WP-Api-Version: 2024-06-01, instruction.method: card, and a paymentInstrument of type plain (the fallback test card 4000000000002701 with cardholder AUTHORISED, from the Try test-card list), card/checkout (a Checkout SDK session), card/wallet+googlepay, or delegate with the sessionHref an agent received (https://docs.worldpay.com/access/products/payments and https://docs.worldpay.com/access/products/payments/enable-features/acp-delegate-token). Hosted Payment Pages keep their application/vnd.worldpay.payment_pages-v1.hal+json media type, and their result URLs carry the transaction reference so the merchant's return page can find the session. The first live run confirms those shapes and the response fields the adapter reads.
Not enabled by default. Enterprise credentials, Google Pay, and the signed Events webhook all go through the Implementation Manager. Whether every Try credential has Hosted Payment Pages switched on is not documented.
Webhooks. The Events webhook carries Event-Signature: {keyId}/{hashFunction}/{signature}, an HMAC-SHA256 of the body with a shared secret the Implementation Manager supplies (https://docs.worldpay.com/access/products/events/signature). No verifier is implemented here.
./platforms/worldpay/test.sh
CyberSource: Encore Seats
Encore Seats is the blueprint's ticketing example on the CyberSource adapter (psp_commerce/adapters/cybersource.py), served by the vendored ticketing apps: API 8019, storefront 3019, portal 3119. Requests go to https://apitest.cybersource.com with HTTP-signature authentication: v-c-merchant-id, Date, Host, Digest (SHA-256= plus the base64 body hash, on POST), and a Signature header with keyid, algorithm="HmacSHA256", the signed header list including (request-target), and the HMAC over the signing string with the base64-decoded secret. signature_headers is a pure function, checked against a known vector in tests/test_adapters_http.py::test_cybersource_signature_and_requests.
| Method | Endpoint |
|---|---|
create_payment_link, create_checkout_session, get_checkout_session |
POST /ipl/v2/payment-links with processingInformation.linkType, purchaseInformation.purchaseNumber, orderInformation.amountDetails, and lineItems, returning the link URL; GET /ipl/v2/payment-links/{id} |
authorize_payment |
POST /pts/v2/payments with tokenInformation.transientTokenJwt (the Flex Microform or Unified Checkout token) or paymentInformation.card for a first test, and processingInformation.capture; /pts/v2/payments/{id}/captures |
create_client_session, complete_client_session |
POST /up/v1/capture-contexts (Unified Checkout) with targetOrigins, allowedCardNetworks, allowedPaymentTypes, captureMandate, and the amount, returning the capture context the JavaScript library mounts with; the transient token it returns is charged with /pts/v2/payments |
authorize_delegated |
POST /pts/v2/payments with paymentInformation.fluidData and paymentSolution: 012 for a Google Pay payload, or with the credential as a transient token for Visa Intelligent Commerce |
transactions |
POST /tss/v2/searches (Transaction Search); settlement and dispute reports are batch files, so the ledger stands in |
Test credentials. Self-service at https://developer.cybersource.com/hello-world/sandbox.html: choose an organization id (the merchant id) and give company and contact details; an email then guides you to create a user on the Test Business Center at https://businesscentertest.cybersource.com/ebc2 (read on 8 September 2026). There, Payment Configuration > Key Management > Generate key > REST Shared Secret yields the key id and the shared secret (https://developer.cybersource.com/docs/cybs/en-us/platform/developer/all/rest/rest-getting-started.html). Test cards are Visa 4111 1111 1111 1111 and Mastercard 5555 5555 5555 4444 (https://developer.cybersource.com/hello-world/testing-guide.html).
Variables (platforms/cybersource/.env.example): CYBERSOURCE_MERCHANT_ID, CYBERSOURCE_KEY_ID, CYBERSOURCE_SECRET_KEY, ANTHROPIC_API_KEY, CHECKOUT_MODEL.
Not run live. The adapter has not been run against a CyberSource sandbox in this repository. For the first run: the adapter sends linkType: "PURCHASE" as the Pay by Link documentation shows (https://developer.cybersource.com/docs/cybs/en-us/paybylink/developer/all/rest/paybylink/paybylink-services/paybylink-create-intro.html) and reads the link URL from purchaseInformation.paymentLink or a top-level paymentLink, so the response field needs confirming. Unified Checkout's targetOrigins must match the page origin and be https (https://developer.cybersource.com/docs/cybs/en-us/unified-checkout/developer/all/rest/unified-checkout/uc-setup-capture-context.html); the adapter sends the merchant's base URL with an https scheme, so the drop-in model needs the merchant served over https to match. The Visa Intelligent Commerce path is an assumption: the adapter accepts a vic_ credential as a transient token and marks the transaction agent-initiated.
Not enabled by default. Unified Checkout and Pay by Link must be enabled at the portfolio level through a sales representative and then added under Business Center > Portfolio Management > Merchant Details > Add products (https://developer.cybersource.com/docs/cybs/en-us/paybylink/developer/all/rest/paybylink/paybylink-intro.html and https://developer.cybersource.com/docs/cybs/en-us/unified-checkout/developer/all/rest/unified-checkout/uc-intro-setup/uc-intro-setup-ebc/uc-enabling-ebc.html). Whether a fresh self-service sandbox already has them is not documented, so the hosted, link, and drop-in models may all answer with an enablement error on a new account while /pts/v2/payments works.
Webhooks. A shared secret is created with POST /kms/egress/v2/keys-sym, subscriptions with POST /notification-subscriptions/v2/webhooks, and notifications carry v-c-signature: t=…;keyId=…;sig=… (https://developer.cybersource.com/docs/cybs/en-us/webhooks/implementation/all/rest/webhooks.html). No verifier is implemented here.
./platforms/cybersource/test.sh
Clover: Northstar Outfitters
Northstar Outfitters is an outdoor retailer on Clover (psp_commerce/adapters/clover.py), with the reference's own storefront and portal: API 8010, storefront 3010, portal 3110. Clover is the one processor here that also supplies the catalog: the adapter's sync_inventory reads items, item groups, and categories from the platform REST API into the same shape the fixture clover_items.json carries, so CloverCatalogStorefront reads a live merchant and the fixture identically. Three hosts are involved: the platform API (bearer token), the Ecommerce API at https://scl-sandbox.dev.clover.com for charges, and the tokenization host at https://token-sandbox.dev.clover.com.
docs/CLOVER-INVENTORY.md.| Method | Endpoint |
|---|---|
sync_inventory |
GET /v3/merchants/{mId}/items?expand=itemStock,categories,itemGroup,options (paged), /item_groups?expand=attributes.options, /categories; POST /item_stocks/{itemId} and POST /items/{itemId} write stock and price after the merchant approves a change |
create_checkout_session, create_payment_link |
POST /invoicingcheckoutservice/v1/checkouts with X-Clover-Merchant-Id, customer, shoppingCart.lineItems (price in cents), and redirectUrls, returning href and checkoutSessionId (a 15-minute Hosted Checkout session) |
get_checkout_session |
the ledger, fed by the Hosted Checkout webhook |
authorize_payment |
POST /v1/tokens on the tokenization host with the PAKMS apikey, then POST /v1/charges on the Ecommerce host with amount, currency, source, and capture |
create_client_session, complete_client_session |
GET /pakms/apikey, returning apiAccessKey for the hosted iframe SDK; POST /v1/charges with the iframe's clv_… token |
authorize_delegated |
not supported; every platform credential is refused |
transactions |
GET /v3/merchants/{mId}/payments?expand=tender,cardTransaction filtered by createdTime |
Test credentials. Create a sandbox developer account at https://sandbox.dev.clover.com/developer-home/create-account: email confirmation, a password, a developer name, and a test merchant, with no approval step (https://docs.clover.com/dev/docs/create-a-sandbox-account, read on 8 September 2026). A merchant API token comes from Test Merchants > Launch Dashboard > Settings > View all settings > Business Operations > API tokens (https://docs.clover.com/dev/docs/generate-a-test-api-token); the merchant id is in the dashboard URL. Ecommerce tokens come from Settings > Ecommerce > Ecommerce API Tokens, after ticking "Enable online payments" and choosing an integration type (https://docs.clover.com/dev/docs/create-ecommerce-api-tokens). The success test card is 4242 4242 4242 4242; the last three digits of the amount select the host response (https://docs.clover.com/dev/docs/test-card-numbers). The Ecommerce service is available in the United States and Canada only.
Variables (platforms/clover/.env.example): CLOVER_MERCHANT_ID, CLOVER_ACCESS_TOKEN, optional CLOVER_ECOMMERCE_TOKEN (the Ecommerce private token; the access token stands in without it), ANTHROPIC_API_KEY, CHECKOUT_MODEL.
Not run live. The adapter is tested in tests/test_adapters_http.py::test_clover_requests_and_inventory_sync and has not been run against a sandbox merchant. The adapter's platform host is https://apisandbox.dev.clover.com, where Clover's reference puts the sandbox REST API and the Hosted Checkout endpoint, with sandbox.dev.clover.com as the dashboard and OAuth host (https://docs.clover.com/dev/reference/api-reference-overview and https://docs.clover.com/dev/docs/creating-a-hosted-checkout-session, read 8 September 2026); CLOVER_ENV=production switches the three hosts to their production names. Its tokenized test card is 4242 4242 4242 4242, the success card on Clover's test-card page. With CLOVER_MERCHANT_ID and CLOVER_ACCESS_TOKEN set, Northstar Outfitters reads its catalog from the sandbox merchant's items, item groups and categories through the adapter's inventory sync instead of the fixture.
Not enabled by default. Hosted Checkout needs "Enable online payments" ticked, the "Hosted checkout" integration type chosen, and an Ecommerce private token issued; whether that alone suffices for /invoicingcheckoutservice/v1/checkouts on a brand-new test merchant is not documented. Redirect URLs must be https, and dashboard values override the request (https://docs.clover.com/dev/docs/redirecting-customers).
Webhooks. Hosted Checkout webhooks carry Clover-Signature: t=…,v1=…, an HMAC-SHA256 over <t>.<raw payload> with a signing secret generated in the dashboard (https://docs.clover.com/dev/docs/ecomm-hosted-checkout-webhook); app webhooks carry X-Clover-Auth after a verification-code handshake (https://docs.clover.com/dev/docs/webhooks). No verifier is implemented here.
./platforms/clover/test.sh
Side by side
| Stripe | Adyen | Worldpay | CyberSource | Clover | |
|---|---|---|---|---|---|
| Hosted page | Checkout Session, hosted_page |
/sessions, mode: hosted |
Hosted Payment Pages | Pay by Link doubles as the page | Hosted Checkout |
| Server-side | PaymentIntent confirm and capture | /paymentMethods, /payments, /payments/details |
/api/payments |
/pts/v2/payments |
/v1/tokens then /v1/charges |
| Drop-in | embedded Checkout Session | /sessions, mode: embedded |
Checkout SDK identity | Unified Checkout capture context | PAKMS key and iframe SDK |
| Pay by link | Payment Links | /paymentLinks |
Hosted Payment Pages URL | /ipl/v2/payment-links |
Hosted Checkout href |
| Delegated credentials | Google Pay token, shared payment token | Google Pay token | Google Pay token, delegate token | Google Pay payload, Visa Intelligent Commerce | none |
| Hosted page on a fresh account | yes | Pay by Link yes; Hosted Checkout needs v72 and a webhook | undocumented | needs portfolio-level enablement | after "Enable online payments" and a private token |
| Run live in this repository | 6 September 2026 | 7 September 2026 | no | no | no |
Every adapter, live or not, satisfies the same protocol (tests/test_adapters_http.py::test_every_adapter_satisfies_the_protocol_and_needs_credentials), so the tender card, the merchant agent's payments view, and the endpoints in 04-third-party-agents.md read all five the same way. The dated ledger of every live run is 10-what-is-verified.md.