checkout-sdk-js
checkout-sdk-js copied to clipboard
Feature request - need way to detect inventory missing
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?
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.