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

Tax and digital products

Open kzhang-dsg opened this issue 5 years ago • 2 comments

When checkout with only digital product in the cart, there are several issues with CheckoutSDK:

  1. The updateShippingAddress() call fails with 422 response code: MicrosoftTeams-image (6) This may not be an issue because digital product does not need shipping. But it will impact the tax calculation (see below)
  2. 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.

kzhang-dsg avatar Aug 15 '19 14:08 kzhang-dsg

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

lpschz avatar Sep 13 '19 05:09 lpschz

@kzhang-dsg was this resolved in the end?

bc-0dp avatar Feb 15 '24 12:02 bc-0dp

Going to close this issue.

animesh1987 avatar Mar 25 '24 06:03 animesh1987