Skip to content

How a purchase happens

The whole Checkout integration in one diagram: who calls whom between the browser, your server and Kustom, from POST /checkout/v3/orders to the push.

The customer never leaves your store. You build a payload describing the cart, then create an order from it. Kustom hands back a snippet you render on your page, and just before the purchase completes Kustom may call you back to validate it. Two independent things then tell you the customer paid: a browser redirect to your confirmation page, and a server-to-server push, and either can arrive alone.

Here is that sequence as the traffic between the three systems in every direct integration:

The five pages below build it in order, and each one runs live against the Kustom Playground so you can see the actual calls rather than take them on faith.

PageAnswers
What to sendWhat goes into the order payload, which fields are required and why the order lines matter beyond the total.
Create the orderHow a payload becomes a live checkout — the request, the response and what to store from it.
Render Checkout snippetHow to put the snippet on the page, and keep the order behind it in sync as the cart changes.
Answer the callbacksWhether you need callbacks at all, and how to answer the ones you do.
Confirmation & pushHow you know, reliably, that the customer paid, and what to do if a push never arrives.

This guide builds the embedded checkout — Kustom Checkout rendered inline on a page you own, rather than hosted on a Kustom-served page or wrapped in a native mobile app. Nothing below applies to those two: the payload is the same, but creating, rendering and confirming the checkout are not. If either of those fits your integration better, see Integration models to compare the options, or go straight to the mobile SDK for a native app.

The quickstart is 15 minutes and proves the integration works, live, against the Playground, with a working route for each step already written for you to read. This guide is what you actually ship — the full payload, the update story once a checkout is on screen, the callbacks and both routes that confirm a purchase. Run the quickstart first to see it work. Come here when you’re ready to build it for real, one page per decision you still have to make.

This page is also available as Markdown — append .md to its URL — and is indexed in llms.txt.