#JaviBarredo
1 messages · Page 1 of 1 (latest)
Hello
Hey!
Are you using Automatic Tax here?
yeah
based on country
I saw that on stripe custom checkout there's a request that returns it
but I wonder if Stripe Node Sdk has that
When you say "stripe custom checkout" you mean you are using Stripe Checkout here, correct?
I am not using the https://checkout.stripe.com/ payment page
I made a custom site with stripe custom checkout box added to it
yeap
Okay so to see the calculation here you want to retrieve the Invoice using https://stripe.com/docs/api/invoices/retrieve
There are various properties on the Invoice object that will indicate the tax calculation
Like total_tax_amounts: https://stripe.com/docs/api/invoices/object#invoice_object-total_tax_amounts
but
how can i retrieve an invoice
if it's not created
You are trying to preview this for the future?
Ah then you want to use the Retrieve upcoming invoice endpoint: https://stripe.com/docs/api/invoices/upcoming
You can use that to simulate a Subscription creation and see what an Invoice would look like
Sure