#Filip | Tenderly-tax-calculation
1 messages · Page 1 of 1 (latest)
We've enable automatic_tax, and we are sending it as a parameter to the stripe subscription.
Got it. You'll need to use the Upcoming Invoice API to view the tax calculations: https://stripe.com/docs/tax/subscriptions#preview-price
Let me see if I understan.
- Users creates subscription in "incomplete" stataus.
- Users updates locations (lets say US).
- Then he enters card information.
- We preview sales tax based on upcoming invoice we fetch from stripe?
If user location gets updated would the upcoming invoice change too? Let's say user went back one step and changed the country.
You'd need to call that preview invoice endpoint again, yep
And one final Q, is it possible to fetch this infromation from the UI, stripe.js lib?
It's not, no. You'll need a server-side lib/API
Cool, thx and cheers.