checkout-sdk-js
checkout-sdk-js copied to clipboard
Tax and digital products
When checkout with only digital product in the cart, there are several issues with CheckoutSDK:
- The updateShippingAddress() call fails with 422 response code:
This may not be an issue because digital product does not need shipping. But it will impact the tax calculation (see below)
- We were able to workaround the updateShippingAddress() issue by catching the error. But on the next step of checkout, the tax is not calculated. After clicking the place order, on the order confirmation page, it then shows the tax. For example, on the checkout page, the item is $10, the tax is $0, and the order total is $10. But when click on place order, on the order confirmation page, the the item is $10, the tax is $1, and the order total is $11, which makes the order total mismatch between checkout page and order confirmation page.
Hi kzhang-dsg, As you have mentioned, digital items dont need a shipping address. You can check the cart line items and if you dont have physical items, you can assume you dont require the shipping step (instead of catching the exception).
As regards tax, I will forward this issue to our tax team so they can take a look at it.
Greets, Luis
@kzhang-dsg was this resolved in the end?
Going to close this issue.