#Filip | Tenderly-tax-calculation

1 messages · Page 1 of 1 (latest)

hallow tundra
#

Hey there! How are you calculating tax currently?

cloud shore
#

We've enable automatic_tax, and we are sending it as a parameter to the stripe subscription.

hallow tundra
cloud shore
#

Let me see if I understan.

  1. Users creates subscription in "incomplete" stataus.
  2. Users updates locations (lets say US).
  3. Then he enters card information.
  4. 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.

hallow tundra
#

You'd need to call that preview invoice endpoint again, yep

cloud shore
#

And one final Q, is it possible to fetch this infromation from the UI, stripe.js lib?

hallow tundra
#

It's not, no. You'll need a server-side lib/API

cloud shore
#

Cool, thx and cheers.