Skip to content

Checkout pages

A checkout reaches buyers in three shapes, all served by the edge worker on any edge host:

  • the hosted checkout page at /c/<ws>/<checkoutId> — a ready-made page with just the checkout on it;
  • the embedded widget, loaded by /checkout.js wherever the page contains <div data-amable-checkout="…" data-amable-tenant="…"></div> (landing pages place it for you);
  • the post-purchase offer block (<div data-amable-offer …>), shown on the built-in offer page at /c/<ws>/offer or on a landing page of yours.

This page describes what buyers see and send; how to build checkouts is covered in Checkouts.

Surface Reachable when
Hosted page The checkout is Active and its Hosted page switch is on
Embed and widget API The checkout is Active; with Allowed websites set, only from those domains (the hosted page always passes)
Offer page and offer block A purchase of that checkout happened within its Time to accept window

Draft, archived and deleted checkouts answer “This checkout is not available.” (hosted page: 404).

A minimal page with the checkout widget, the checkout’s heading as <title>, and noindex — hosted checkouts never appear in search engines. It is served with a strict content security policy that allows Stripe’s scripts, card frames and 3-D Secure dialogs, and a permissions policy that enables payment for Stripe’s frames only. Everything renders in a shadow root, in the buyer’s language (English or Italian, following the checkout’s Language setting or the browser).

  1. The widget fetches the public configuration (/config, cached 30 seconds) and shows the items, fields and bumps. Prices come from the server (/quote): picking items, changing quantities, ticking bumps or applying a promo code re-prices the order server-side.
  2. Submitting posts the buyer details to /session: the contact is created or updated, a draft order is written and a purchase session opens. The response carries a session token (kept in the browser’s sessionStorage) and a Stripe client secret; the same token is reused when the buyer retries after a declined card, so nothing is duplicated. Unpaid sessions expire after 2 hours.
  3. The card or wallet is confirmed with Stripe in the page; bank redirects (3-D Secure) return to the same URL with the token in the amb_cs query parameter.
  4. /session/complete settles the purchase: amabledata reads the outcome from Stripe, never from the browser.
  5. With post-purchase offers, the buyer walks the chain: /session/offer returns the offer to show, /session/accept charges the saved card (answering 3-D Secure through /session/confirm when asked), /session/decline moves on. Then the thank-you step: your URL, or the built-in confirmation with the order number.
  • The buyer fields and custom fields of the checkout (email always), written to the contact like a form submission.
  • UTM parameters and click ids of the page, stored on the order for ad attribution; the analytics visitor id links the purchase to the visitor’s session.
  • The order, payment, invoice and (for plans) subscription described in Checkouts.

Card numbers never touch amabledata: they go from the buyer’s browser to Stripe.

  • A honeypot field rejects naive bots.
  • Rate limits per visitor: 20 purchase attempts and 30 offer answers per 10 minutes, 120 quotes per 10 minutes, 60 address lookups per 5 minutes (“too many requests, retry later”).
  • Session tokens are 32 random bytes, stored hashed; guessing one is not practical.
  • Amounts are always computed server-side; the page can only choose among the items, bumps and offers the checkout defines.
URL Method Purpose
/checkout.js GET The widget script (immutable, content-hashed)
/c/<ws>/<checkoutId> GET Hosted checkout page
/c/<ws>/<checkoutId>/config GET Public configuration (JSON, cached 30 s)
/c/<ws>/<checkoutId>/quote POST Price a selection and promo code
/c/<ws>/<checkoutId>/session POST Open or refresh the purchase session
/c/<ws>/<checkoutId>/address POST Address suggestions while typing
/c/<ws>/offer GET Built-in post-purchase offer page (?amb_cs=<token>)
/c/<ws>/session/complete POST Settle the payment (token in the body)
/c/<ws>/session/offer POST Current offer of the session
/c/<ws>/session/accept POST Accept the offer (one-click charge)
/c/<ws>/session/confirm POST Finish an offer charge after 3-D Secure
/c/<ws>/session/decline POST Decline the offer
/c/<ws>/stripe/webhook POST Stripe events of the workspace account (signed)

CORS is open on the JSON endpoints (embeds live on any site); the session token always travels in the request body, never in a cookie.

Message When
“This checkout is not available.” Draft, archived or deleted checkout, or nothing left to buy
“Payments are not configured yet.” The workspace has not connected Stripe
“This checkout cannot be used on this website.” The embedding site is not in Allowed websites
“Please check the highlighted fields.” Validation errors on the fields
“The payment did not go through. Please try another method.” Stripe declined the payment (the card error is shown when Stripe provides one)
“Your payment is being processed. You will receive a confirmation shortly.” An asynchronous payment method is still settling
“Thank you! Your payment was received.” + “Order <number>” The built-in confirmation (unless a custom success message is set)
“This offer is no longer available.” The offer window expired, the offer was answered, or the page was opened without a purchase

Buyers need no account. Everything they can reach is decided by the checkout’s status and settings; see Checkouts — Limits and permissions.

Symptom Cause Fix
The widget does not appear on your site The script tag or the div attributes are missing or wrong Re-copy the snippet from the checkout’s Embed card
The page loads but shows “Payments are not configured yet.” Stripe is not connected Connect Stripe
A buyer paid but the page kept “processing” The payment settles asynchronously and the Stripe webhook is missing Configure the webhook; the payment settles as soon as Stripe reports it
The offer page opened from an old email shows “no longer available” Offer links are tied to a purchase and its time window Expected: offers are one-time, post-purchase