checkout-sdk-js
checkout-sdk-js copied to clipboard
Feature request - expose shipping tax
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
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
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.