checkout-sdk-js icon indicating copy to clipboard operation
checkout-sdk-js copied to clipboard

Feature request - need way to detect inventory missing

Open daisy1754 opened this issue 6 years ago • 1 comments

Currently, if we use the sdk in cart page, there is no way to tell missing inventory. All APIs works without error until user try to place order.

Can you add API/properties so developer of SDK can check the inventory at the beginning of checkout flow?

daisy1754 avatar Nov 04 '18 19:11 daisy1754

We are not planning to add those capabilities any time soon. For now the suggested flow is to try to load /checkout page, where we perform an inventory validation and if it failed, we redirect back to cart page.

You need to make sure the cookies are being sent, otherwise it won't work.

lpschz avatar Nov 05 '18 00:11 lpschz