Directing to Checkout
Last updated
Was this helpful?
Last updated
Was this helpful?
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 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. .
Gets a basket associated with the provided identifier.
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
The basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
Successful response returns the basket information.