#demus-tax

1 messages · Page 1 of 1 (latest)

meager mason
#

hi! what do you mean by "get" exactly? Generally the way it works is you'd be using our hosted Checkout page(you can't use automatic tax with raw PaymentIntents) and that page will show the tax to be paid based on the customer's information.

sharp night
#

Hi @meager mason
We are selling SaaS with subscriptions. We're not using hosted checkout page, but custom form with "stripe elements" (attached screenshot). On form submit we create payment method with "stripe.createPaymentMethod" and create new customer, making API call from our backend.

#

Subscription is being created on the next step. We want to keep showing tax rate there as well

dusky pewter
#

Hi! So you would like to display the tax amount on your page before creating the subscription object?

sharp night
#

yes

dusky pewter
#

That's a bit tricky. Assuming you already have a customer object, you could manually create an invoice for that customer, check the tax amount, and then delete the invoice.