#Chhay-subscription
1 messages · Page 1 of 1 (latest)
Hi! So you are creating subscriptions with Stripe, and you would like to display the price and tax on your website directly?
yes, boss
Do you want to display the price after the subscription has been created, or before?
both boss
If it's after it's quite easy: just retrieve the first invoice of the subscription, and display the prices in the lines property https://stripe.com/docs/api/invoices/object#invoice_object-lines
If you don't have an invoice, then it's a bit tricky because of the tax. Assuming you already have a customer object, you could manually create an invoice for that customer, check the lines property and then delete the invoice.
OMB
So if I use the Tax Rate, I will be able to use the Tax API and calculate the total price by myself. right?
Yes
Just to confirm, there is the only way to calculate the dynamic tax rate, right?