woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
237 stars 207 forks source link

Apple Pay doesn't include tax if no shipping zone is set #272

Closed mdmoore closed 7 years ago

mdmoore commented 7 years ago

When shipping zones have not been set, as in the case of shops selling only virtual products, tax is not calculated. This occurs even when tax is set to be calculated based on billing address.

  1. Remove all shipping methods
  2. Add a tax rate
  3. Purchase a product with Apple Pay

With Shipping Method:

Without Shipping Method:

roykho commented 7 years ago

@mdmoore is this with public release or with master branch?

mdmoore commented 7 years ago

@roykho This is with the public release.

roykho commented 7 years ago

@mdmoore would you mind testing master?

mdmoore commented 7 years ago

Works great! Thanks @roykho!

mdmoore commented 7 years ago

@roykho I spoke too soon. This is still present in master.

roykho commented 7 years ago

Ok after looking into this more, I don't think there is a solution to this. Apple Pay simply does not provide the billing address from the Apple Wallet account and therefore WC can't determine what the taxes will be without an address. This is assuming WC is set to no default location. WC can be set to "shop base" which means it will determine the tax based on the store's location. But this may not always be favorable.

I cannot think of a good work around for this. They can add the taxes to only the virtual products to be inclusive of taxes but that would mean everyone would be taxed on it regardless of their billing location.

cc @mattyza

mattyza commented 7 years ago

Thanks @roykho. I'll flag this with Apple Pay, and see if we can find an answer here.

roykho commented 7 years ago

This is not currently possible as no billing address is exposed when payment sheet opens. So the work around is that on product detail page final amount is pending and once they submit, then the address is exposed and we calculate the final amount then. This is what is suggested by Stripe as well.

ghost commented 6 years ago

Hi there, I use Apple Pay from Stripe in my woocommerce setup but noticed the tax is not being added. Any ideas?

roykho commented 6 years ago

Hi @mikepalmeruk so this is not the place for support. But for repeatable documented steps. You should ask your questions here https://wordpress.org/support/plugin/woocommerce-gateway-stripe/