Checkout for any storefront.
Use a connected store out of the box, or call the API from your own front end. Either way, the catalog sets the price.
checkout.tsNode
const session = await qyubi.checkout.create({
items: cart.lines.map((line) => ({
variantId: line.variantId,
quantity: line.quantity,
})),
returnUrl: "https://shop.example/thanks",
});
return redirect(session.url);
// Later, on your server
if (event.type === "payment.succeeded") {
await fulfil(event.data.orderRef);
}Illustrative. Full API details are shared with early access partners.
Built so prices can't drift
Server-priced.
Send what the customer wants, not what it costs. Qyubi works out the total from the catalog.
Catalog in sync.
Connected stores stay current, so the variant you reference is the one you charge for.
Any front end.
Plugin, headless or hand-rolled. If it can make an HTTP request, it can check out.
Webhook deliveriesshop.example/hooks
payment.succeeded #1042200payment.succeeded #1041200refund.created #1040200payment.succeeded #1039200payment.succeeded #1038200Order #1042Paid
Merino Scarf2 × $29.00 from catalog$58.00
Canvas Tote1 × $24.00 from catalog$24.00
Wool Beanie1 × $19.00 from catalog$19.00
Total$101.00