#anthony-apple-pay-tax
1 messages · Page 1 of 1 (latest)
@topaz crypt the Stripe Tax product doesn't really work with one-time payments like this today. It's built on top of Checkout or Invoicing, where we'd do the work/control the UI
is there any way to use the tax_rates api instead?
no none of this works with PaymentIntents/one-time payments, today it's just a total amount
interesting. do you have any advice on a workaround for charging sales tax?
yeah that makes sense. the difficulty is that sales tax is calculated by address (usually shipping), but since apple pay allows the user not to input their address manually, but rather through apple pay, my app is unaware of their address until after the transaction goes through
so i guess one posisbility is to ask for address first, use that address to calculate sales tax, then allow the user to use apple pay without asking for an address where we would then have the separate line items--but this requires changing a major functionality of apple pay for the user to not be able to use it to input an address
You can get the billing and shipping address during that window, like https://stripe.com/docs/js/payment_request/events/on_shipping_address_change
so you can dynamically calculate tax your way and update the amount/display
oo interesting. if the user has a default address in place, will that trigger this event?
So I was going to say something like this: mostly the way you do this is: you ask relevant info, calculate tax, display it as such and if after the PaymentRequest completes you get different data (different billing address or shipping address) and it changes your tax, you display an error, update the amount and have them try again.
My team though says it's a bad idea, since that is not a good experience and Apple won't like that. They recommend collecting the billing/shipping details upfront to reliably calculate tax and rely on that information
not sure what you prefer, that's in parts why we have Apple Pay and Google Pay disabled right now on automatic tax calculation
thanks for the in depth answer. when you say "ask relevant info" in your personal answer, you mean separately from apple pay right? and for your team's answer "collecting the shipping details upfront", that also means separately from apple pay, right?
yes
awesome thanks so much!
their recommendation really is to disable Apple Pay in that flow though