Skip to content

Checkouts

A checkout is a payment page for your products and plans that buyers use on their own: they fill in their details, pay by card or wallet, and amabledata creates the contact, the order, the payment and, for plans, the subscription. A checkout can carry order bumps (one-checkbox add-ons) and a chain of post-purchase offers (one-click upsells and downsells charged on the card the buyer just used).

Payments go through your own Stripe account, connected with its API keys in Settings › E-commerce. amabledata never sees card numbers: the card fields and the 3-D Secure dialogs are Stripe’s own, embedded in the page.

Where to find checkouts:

  • E-commerce › Checkouts in the sidebar (/t/<workspace>/checkouts): the list.
  • A checkout’s editor (/t/<workspace>/checkouts/<checkout id>): content, design, settings, preview and embed codes.

One checkout can be used in three ways at once:

Way How
Landing page widget In the landing page editor, add the Checkout widget and pick the checkout. No code.
Embed snippet Paste the two-line snippet (a div and a script) in any website.
Hosted page Share the built-in link (/c/<workspace>/<checkout id> on your pages domain). It works without any page of yours; disable it with the Hosted page switch.

The checkout shows your items with their prices, the buyer fields, any custom fields, the optional promo code box, the order bumps, the Stripe payment element (cards plus the wallets enabled in your Stripe account, such as Apple Pay and Google Pay) and the pay button. The summary lists every line with subtotal, discount, tax and Total — or Due today when a subscription makes the schedule more interesting (trial, setup fee, “then €… every month”).

After a successful payment the buyer either walks the post-purchase offers (see below) or lands on the thank-you step: your Thank-you page URL, or the built-in confirmation with your Success message and the order number.

The page speaks English and Italian: Language picks one, or follows the visitor’s browser (Visitor’s browser, the default).

A checkout sells up to 20 items, each a catalog product or a subscription plan:

  • Buyer choice — Buy everything (default): every item is bought together. At most one of them can be a plan.
  • Buyer choice — Choose one: the buyer picks exactly one item (for example a monthly or a yearly plan). Preselected marks the one selected when the page opens.
  • Let the buyer change quantities adds a quantity stepper to every item (1–999).
  • Each item can override the catalog price (empty uses the catalog price), the label (empty uses the catalog name), the description and the image. Items are sold at the override price; the catalog is never changed.

Every product and plan on one checkout (bumps and offers included) must be priced in the same currency. Inactive or deleted catalog entries silently disappear from the page; an active checkout where nothing is left to buy shows “This checkout is not available.”

A plan item follows the plan’s terms: with no trial its first period is charged now (plus the plan’s setup fee, if any); with a trial nothing is charged now except the setup fee, and the card is saved to charge renewals. See Subscriptions bought on a checkout.

Up to 5 bumps: extra products offered right on the checkout with one checkbox (“Yes, add this to my order”). Each bump has a headline, a description, an optional image, its own price override (the catalog price is shown struck through when higher), one of five looks (Classic, Highlight, Dashed, Minimal, Ribbon), an accent color and a position (Below the products, Above the payment, Below the payment). Checked by default pre-ticks it. Bumps are always products, never plans.

Up to 10 offers form a chain of one-click upsells and downsells:

  1. First offer names the offer shown right after the payment (None goes straight to the thank-you step).
  2. The buyer sees the offer — its title, description and optional image, on the built-in offer page or on your own landing page when you set its Offer page URL — with two buttons: accept (“Yes, add it — €…”) and decline (“No thanks”).
  3. Accepting charges the card of the main purchase with one click, without entering it again (3-D Secure is asked again when the bank requires it). A new order is created for the offer, linked to the main one. An offer can also sell a plan: accepting starts the subscription.
  4. If accepted and If declined name the next offer of the chain (or the thank-you step), so you can branch: decline the upsell → show a cheaper downsell.
  5. Time to accept (5–1440 minutes, default 60) limits how long the chain stays chargeable after the payment. When it expires, the buyer is sent to the thank-you step; an expired or already-answered offer is never charged twice.

A declined card can be retried up to 3 times per offer; declining always works. Offers are skipped entirely when there is no saved card to charge: a purchase with nothing to pay now and no subscription (for example a 100% promo code on one-time items) saves no card, so the buyer goes straight to the thank-you step.

To host an offer on your own landing page, add the Post-purchase offer widget (or paste the Offer snippet) on that page and set the offer’s Offer page URL to it. The widget reads the purchase from the amb_cs query parameter that amabledata appends to the URL; it shows “This offer is no longer available.” when opened without it.

Email is always required: it identifies the contact. The other built-in fields — Name, Phone, Company, Billing address — are each Hidden, Optional or Required. The address block offers suggestions while typing (Address autocomplete, backed by the CRM address lookup); the country is a dropdown with the country names in the buyer’s language, pre-selected by Default country and validated as an ISO code on the server.

Up to 50 custom fields use the same field types as the form builder (text, choices, checkboxes, dates, hidden fields, headings, …) and can map to contact attributes and custom fields, exactly like a form. Each field is prefilled from the page URL query parameter with the same name (for example ?email=…); UTM parameters are always saved on the order.

What happens on submit:

  • The contact is created or updated following the checkout’s CRM settings (tags, lead source, owner, update policy — the same controls as forms), with source Checkout.
  • The order is drafted and the totals are computed server-side; the page never decides a price.
  • UTM parameters and click ids of the visit are stored on the order (and every offer order inherits them), so ad attribution sees checkout revenue.

Timing: the contact — with its owner and lead source — is saved when the buyer submits the form, before the card is confirmed, so an abandoned payment still leaves the lead in the CRM. The checkout’s tags, instead, are “Added once the payment succeeds (a declined card adds none)”. For anything else that must follow the money, use an automation on the order.paid event.

With Accept promo codes on, the buyer can apply one promo code; the summary shows the discount immediately. The URL parameter (default promo) applies a code from the link: https://your.page/offer?promo=LAUNCH25 — handy in emails. An invalid code shows its reason (“expired”, “used up”, …) without blocking the purchase; the buyer can remove it and pay full price.

On subscriptions the code’s duration decides what the renewals pay: the first period only (Once), the first n periods (Repeating), or Forever. See Promotions.

The purchase, step by step (under the hood)

Section titled “The purchase, step by step (under the hood)”
  1. Submit: amabledata validates the fields, upserts the contact, drafts the order and opens a session (the buyer’s progress through the purchase). The session lives 2 hours while unpaid; retrying after a declined card reuses it, so no duplicate orders or contacts appear. Abandoned purchases tidy themselves up: about a day later the session expires and its draft order is deleted (a payment that still lands within 30 days — a tab left open — completes the purchase anyway), and expired sessions are removed after 30 days.
  2. Payment: the page confirms a Stripe payment intent (or a setup intent when nothing is due now — a free trial). Wallets and 3-D Secure are handled by Stripe’s element; redirects return to the same page.
  3. Settlement: amabledata reads the result from Stripe (never from the browser), finalizes the draft into an Unpaid → Paid order, records the payment with the Stripe payment intent id as transaction ID, issues the invoice, starts the subscription if a plan was bought, and emits the usual events (order.created, order.paid, payment.recorded, subscription.started, …).
  4. Offers: each accepted offer repeats the cycle on its own order, charged on the saved card.
  5. A payment that stays processing (some bank methods) shows “Your payment is being processed. You will receive a confirmation shortly.” and settles when Stripe reports the outcome — the Stripe webhook makes this reliable.

A purchase with a zero total and no subscription (100% discount on one-time items) skips Stripe entirely: the order is recorded as paid at once.

Checkout, offer and renewal payments carry the buyer’s email as the Stripe receipt email: with receipts enabled in your Stripe settings, Stripe emails its standard receipt (live mode; Stripe never sends them in test mode). For a branded confirmation email, build an automation triggered by order.paid.

Status Meaning
Draft Being prepared. Buyers cannot open it.
Active Live: the hosted page, the embeds and the widgets work.
Archived Retired: hidden from the default list, buyers cannot open it.

Only Active checkouts can be bought; a draft or archived checkout shows “This checkout is not available.” to buyers. The editor warns you: “An active checkout without products cannot be bought.”

Like the other editors, a checkout is edited by one person at a time: others see who is editing and can take over with checkouts:write. Saves are guarded by a revision: saving a stale copy answers “the checkout was changed by someone else; reload it”. Deleting a checkout keeps its orders and sessions — they belong to the sales history. Duplicate copies everything as a new draft.

Buyers hold a copy of the checkout from the moment they open it; your edits apply to new visits.

The list shows, per checkout: Content (“3 items · 1 bumps · 2 offers”), Paid orders as “paid / sessions” (sessions = buyers who submitted the form, paid = those whose payment succeeded; abandoned sessions leave the count when they are purged after 30 days), Revenue (collected minus refunded across all its orders, offers included) and Updated.

The Embed card of the editor gives you:

  • Checkout snippet — paste where the checkout should appear:

    <div data-amable-checkout="<checkout id>" data-amable-tenant="<workspace>"></div>
    <script src="https://<edge domain>/checkout.js" async></script>
  • Offer snippet — paste on the page of each upsell or downsell:

    <div data-amable-offer data-amable-tenant="<workspace>"></div>
    <script src="https://<edge domain>/checkout.js" async></script>
  • Hosted page — the built-in link, with Open.

Allowed websites (in Settings) restricts where the checkout runs: with domains listed, submissions from other sites are refused with “This checkout cannot be used on this website.” (subdomains of a listed domain are allowed; empty allows any site). The hosted page is always allowed.

The widget renders in a shadow root: your page’s CSS and the checkout’s never clash. On landing pages the Checkout and Post-purchase offer widgets load the same script automatically, and the page’s security policy is extended for Stripe.

You need the checkouts:write permission and Stripe connected.

  1. Go to E-commerce › Checkouts and click New checkout. Give it a name (“Internal name, shown on the order source.”) and click Create checkout.
  2. In Products, click Add product or Add plan and pick from the catalog. Set the Buyer choice (Buy everything or Choose one) and, if you want, override prices and labels (“Empty uses the catalog name.”).
  3. In Fields, choose which buyer fields to show (Name, Phone, Company, Billing address: Hidden, Optional or Required) and add custom fields if you need more.
  4. In Bumps (optional), click Add bump, pick the product, write the headline and description, choose the style and position.
  5. In Post-purchase (optional), add upsells and downsells, link them with If accepted / If declined, and pick the First offer.
  6. In Design, match your brand: layout, colors, button and summary background. The Preview on the right updates as you type (“Preview — payments are disabled.”).
  7. In Settings, write the Heading, the Pay button label and the Success message (each “Empty uses the default text in the buyer language.”), set the thank-you page, terms, promo codes, language and allowed websites.
  8. Switch the status from Draft to Active in the toolbar and click Save.
  1. Open the landing page and add the Checkout widget where the form should appear.
  2. In the widget’s settings, pick the checkout (“Pick one of the checkouts created in the E-commerce section.”).
  3. Publish the page.
  1. Create a landing page for the offer (headline, video, bullets — whatever sells).
  2. Add the Post-purchase offer widget where the buttons should appear. Display shows the offer box with buttons, or Buttons only if the page already presents the offer.
  3. Publish, and set the offer’s Offer page URL in the checkout editor to the page URL.
  4. Repeat for each offer. Offers without a page URL use the built-in offer page.
  1. In the editor, open the Embed card (“Save to publish the latest changes.”).
  2. Copy the Checkout snippet and paste it in your site’s HTML where the checkout should appear.
  3. If you listed Allowed websites, make sure the site’s domain is on the list.
  1. Connect Stripe test keys (pk_test_…, sk_test_…) in Settings › E-commerce; the Stripe card shows Test.
  2. Activate the checkout and pay with Stripe’s test cards (4242 4242 4242 4242, any future expiry and CVC; 4000 0027 6000 3184 to rehearse 3-D Secure).
  3. Walk the offer chain, then check the order, payment, invoice, contact and (for plans) the subscription that were created.
  4. When everything looks right, replace the keys with the live ones (pk_live_…, sk_live_…). Test orders stay in the workspace: cancel or refund them like any other order, and delete the test contacts if you do not want them around.
Setting Default Limits and rules
Items — Up to 20; product or plan; with Buy everything at most one plan
Item quantity 1 1–999
Price override Catalog price 0 up to 100,000,000,000 minor units; 0 makes the item free
Bumps — Up to 5; products only
Offers — Up to 10; keys of lowercase letters, digits, - and _; If accepted/If declined must name existing offers, never the offer itself
Time to accept 60 minutes 5–1440 minutes
Custom fields — Up to 50; the built-in keys (email, given_name, family_name, phone, company_name, address_*) are reserved
Default country IT Two-letter code
Accept promo codes On
URL parameter promo Letters, digits, _ . -; empty disables it
Thank-you page URL, Terms URL, image URLs Empty http(s) URLs
Language Visitor’s browser English, Italian or auto
Allowed websites Empty (any) Up to 50 domains; subdomains match
Hosted page On Off answers 404 on the hosted link
Texts — Heading ≤ 200, pay button ≤ 100, success message ≤ 2,000, terms label ≤ 300 characters

Served on the edge (and on every pages domain):

Path Purpose
GET /checkout.js The widget script (checkout and offer blocks)
GET /c/<workspace>/<checkout id> Hosted checkout page (noindex)
GET /c/<workspace>/offer?amb_cs=… Built-in post-purchase offer page
GET /c/<workspace>/<checkout id>/config Public configuration (JSON)
POST /c/<workspace>/<checkout id>/quote Price a selection (promo code included)
POST /c/<workspace>/<checkout id>/session Open the purchase session
POST /c/<workspace>/<checkout id>/address Address suggestions
POST /c/<workspace>/session/complete Settle after the payment
POST /c/<workspace>/session/offer Current offer of the session
POST /c/<workspace>/session/accept / confirm / decline Answer an offer
POST /c/<workspace>/stripe/webhook Stripe webhook of the workspace account

The session endpoints identify the buyer with a random token carried in the request body (and in the amb_cs query parameter between pages), stored hashed. Public endpoints are rate limited per visitor: 20 session openings and 30 offer answers per 10 minutes, 120 quotes per 10 minutes, 60 address lookups per 5 minutes.

Relative to /api/v2/t/<workspace>:

Method and path Permission Purpose
GET /checkouts checkouts:read List with stats (q, status; archived only with status=archived)
POST /checkouts checkouts:write Create (name, optional status and definition)
GET /checkouts/{id} checkouts:read Get one, with definition and stats
PATCH /checkouts/{id} checkouts:write Update name, status or definition (revision guards concurrent edits)
DELETE /checkouts/{id} checkouts:write Delete (orders and sessions are kept)
POST /checkouts/{id}/duplicate checkouts:write Copy as a draft
GET /checkouts/{id}/embed checkouts:read Embed snippets and the hosted link

Creating and deleting are recorded in the audit log (checkouts.created, checkouts.deleted).

A checkout emits the ordinary commerce events — order.created and order.paid with source: "checkout", payment.recorded, refund.recorded, and the subscription.* events for plans — so automations and webhooks need nothing new. There is no dedicated “checkout abandoned” event: an abandoned purchase is a contact with a draft order and no order.paid.

Action Permission Roles
View checkouts and stats checkouts:read Owner, Admin, Marketer, Sales, Analyst, Viewer
Create, edit, activate, archive, duplicate, delete checkouts:write Owner, Admin, Marketer
Connect Stripe settings:manage Owner, Admin

Buyers need no account and no permission: an Active checkout is public (restrict the sites with Allowed websites).

Symptom Cause Fix
“Payments are not configured yet.” on the page Stripe is not connected (or was disconnected) Connect it in Settings › E-commerce
“This checkout is not available.” The checkout is draft or archived, was deleted, or every item is inactive Activate the checkout and at least one product
“This checkout cannot be used on this website.” The embedding site is not under Allowed websites Add the domain, or clear the list
The hosted link answers 404 Hosted page is off, or the link is wrong Turn the switch on; copy the link from the Embed card
“definition.items: every item, bump and offer must be priced in the same currency” Mixed currencies on one checkout Keep one currency per checkout
The page loads but pricing and payment fail with “checkout items are priced in different currencies” A product changed currency after the checkout was activated Align the product currencies, or rebuild the checkout in one currency
“only one subscription plan can be bought at a time” Two plans with Buy everything Switch to Choose one, or keep one plan
The offer page shows “This offer is no longer available.” The Time to accept expired, the offer was answered, or the page was opened without amb_cs Nothing to fix for old links; reach the page from a fresh purchase
The buyer declined the card 3 times on an offer 3 attempts per offer The buyer can still decline and continue; the main purchase is unaffected
“the checkout was changed by someone else; reload it” Someone saved while you edited Reload and redo the change
Promo code accepted on the page but the payment is refused with a code error The code hit a limit between the quote and the submit (for example its last use) The buyer removes the code and pays full price
Draft orders from checkouts sit in the orders list Buyers who submitted but never completed the payment Nothing to do: about a day later the abandoned session expires and its draft is deleted automatically