#Salman1802

1 messages · Page 1 of 1 (latest)

wicked questBOT
candid summit
#

Hi there!

prisma sable
#

Yes I tried this , But I want to show the tax amount , So how i can do this

candid summit
#

Where do you want to show the tax amount?

prisma sable
#

With product I want to show the tax amount before checkout

candid summit
#

You want to show the tax amount before creating the Checkout Session?

prisma sable
#

Yes

#

@candid summit

candid summit
#

Hum... I don't think that's really possible. Do you already have collected the customers location before creating the Checkout Session?

prisma sable
#

Yes , I have customer latitude and longitude before creating checkout session

#

@candid summit

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?

prisma sable
#

create invoice api?

candid summit
#

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.

prisma sable
#

okay thank you