#Salman1802
1 messages · Page 1 of 1 (latest)
Yes I tried this , But I want to show the tax amount , So how i can do this
Where do you want to show the tax amount?
With product I want to show the tax amount before checkout
You want to show the tax amount before creating the Checkout Session?
Hum... I don't think that's really possible. Do you already have collected the customers location before creating the Checkout Session?
Yes , I have customer latitude and longitude before creating checkout session
@candid summit
Maybe one trick would be to create an invoice for that customer with automatic_tax enabled, this way you can check the total amount. And then delete the invoice and create the Checkout Session?
create invoice api?
Actually you can use the upcoming invoice feature, this was you don't have to actually create an invoice.
Use this: https://stripe.com/docs/api/invoices/upcoming while passing the customer ID and the invoice_items, and then check the total price.
okay thank you