Open yukikatayama opened 5 years ago
Another report in 3081020-zen
I reproduced this issue. It's related to the setting "Display prices during cart and checkout". Here's what checkout looks like when the value is set to "including tax":
And "excluding tax":
For future reference:
WC()->cart->display_prices_including_tax()
wc_cart_totals_shipping_method_label()
in WC Core here: https://github.com/woocommerce/woocommerce/blob/d2f077d5faf784e1a7bb3d4e7d54c79f665769e0/includes/wc-cart-functions.php#L357-L369build_display_items()
: https://github.com/woocommerce/woocommerce-gateway-stripe/blob/7a25f88e6108560174b3cb7b3759fcff726fc868/includes/payment-methods/class-wc-stripe-payment-request.php#L1243-L1247
Describe the bug
This might be more of a feature request, but when checking out with Apple/Google Pay for a product that has inclusive tax + shipping (also inclusive tax), the subtotal for shipping inclusive of tax is unclear.
To Reproduce Steps to reproduce the behavior:
Here's my setup: My product is $100 inclusive of tax and I am using a flat rate shipping of $10.
Tax set to inclusive:
Link to screenshot: https://cld.wthms.co/qdeIg1
Tax applied to shipping:
Link to screenshot: https://cld.wthms.co/TlTVfv
In regular checkout, I see that shipping is $12 which includes the tax rate, so it is clear what the subtotals are and the tax total.
But, if checking our with Google/Apple Pay, Shipping does not show subtotal inclusive of tax:
Link to screenshot: https://cld.wthms.co/bFqe0R
So can be confusing how total gets added up
Expected behavior
Indicate that shipping is showing either exclusive or inclusive of tax when using Payment Requests
Environment (please complete the following information):
Additional context
2411880-hc