Implement your own shopping cart experience on your site and go beyond the standard Checkout Element!
All actions that refer to user's shopping cart or checkout needs to be performed with a session identifier that is also referred to as the Tipser token. Head out to the detailed technical reference of Client-side authentication for detailed instructions.
Shopping Cart API lets you add items to the carts and setup additional parameters such as coupon codes. By persisting the Tipser token associated with the cart in the browser storage, you may implement a sticky shopping cart that keeps the cart items even if the user has abandoned the cart by closing the web browser.
Shopping cart is taking care of making sure that the products in your cart are up to date. This means that the product can become unavailable over the course of the long-running session for fast selling out products. Also, the price of the product can change dynamically - adding the product to the shopping cart and keeping it for a couple of days does not mean it's stock keeping unit and price will be fixed.
For that reason, shopping carts handled by Tipser through Shopping Cart API are automatically refreshing its data and in case of any changes of the products within occurred, it will be reflected in the response payload.
Checkouts API let you finalize the order by creating a payable unit with proper user details, taxes handling and all the data that is needed to fulfil the order properly. Most likely it is enough to use Storefront's Checkout Components that take the burden of implementing proper API interactions yet giving the full customization powers and the native feel.
Similarly to shopping cart, up until the user pays for the product, the stock unit will not be reserved. That's why during the checkout phase Tipser is taking care of live product stock checks and price monitoring to make sure that the user get's an early alert if the product is getting out of stock or the product's price have changed and if such a modification will happen, the proper metadata will be returned in the response payload so the user can be alarmed.
Updated 13 days ago