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

Feature request - expose shipping tax

Open daisy1754 opened this issue 6 years ago • 1 comments

Problem

Currently checkout object only expose one tax field. If user select shipping option using shipping estimator in cart page, there is no way to tell breakdown between subtotal tax and shipping tax

shippingtax

Proposal 1

taxes field already returns array. It should return two entry, one for subtotal tax and another for shipping tax

Proposal 2 (less ideal)

sdk should provide removeShippingOption method so user of sdk can remove shipping option to calculate subtotal fix

daisy1754 avatar Dec 15 '18 17:12 daisy1754

Hi @daisy1754!

Thanks for the comments and proposed solutions. It seems reasonable that we return the tax value for the shipping option. Let me discuss it with the back end engineers and see what's the best way to surface it to the API.

Regards.

icatalina avatar Dec 16 '18 21:12 icatalina