Directing to Checkout
When the user is ready to checkout, you can fetch the current basket and direct the user to its links.checkout
URL. Here, the user will enter their payment information and complete checkout.
If you'd like the user to stay on your site during checkout, use Tebex.js alongside the Headless API.
For most stores, authorizing the user against the basket is required before checkout. You can do this by directing the user to the appropriate link provided by the /baskets/auth endpoint. Read more here.
Last updated