#deathpote-invoice-tax
1 messages · Page 1 of 1 (latest)
Hi bismarck, thanks for your time !
Hey there
Reading!
Okay so what you want to do is to preview the upcoming invoice based on this info
So you want to pass the postal to your backend and use: https://stripe.com/docs/api/invoices/upcoming
Then you can look at the tax that will be calculated based on that postal
And then send it back to your frontend and update your UI
There is no way to get the tax rate before creating an invoice ? on my current Stripe integration, we don't persist anything to Stripe before hitting the "purchase" button
(I'm not sure your API server will be happy if we create a pending subscription with its invoice every time we display the checkout page to a customer, before he hit the "Purchase" button, and it slows down the (already quite long) purchase process in our side)
deathpote-invoice-tax
@civic temple you can use the Upcoming Invoice API like my colleague explained above really
This simulates what the first Invoice of a Subscription would be, without persisting anything
Oh sorry I read too fast, missed the you are simply viewing a preview – the invoice has not yet been created. line
I'll take a look, thanks a lot !
As I understand, I still need to create my stripe Customer at this point, I'll see if it can be done easily with my current integration.
I was hoping something way more simple, like passing a price id and a postal code to retrieve tax rate, but I'm from EU and it may be impossible to do so in the US
I'm new to taxes in US, this thing is a mess 🤦♂️
yeah I think you want to create a Customer and collect detailed billing details upfront
Is it enough to collect only the postal code ? I don't like asking too much personal information without justification
that doc covers what's needed per region
Stripe Tax supports calculating sales tax with only a basic 5-digit US postal code. yep was reading it, I'll read it full before asking anything else, sorry !
Thanks for you time anyway, I'll try to implement that ! Have a nice day