#s0viet-subscription-total
1 messages · Page 1 of 1 (latest)
Yup, just to display the user how much we would bill right before payment form
Sounds like you'd need the upcoming invoice API: https://stripe.com/docs/api/invoices/upcoming
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hmm I saw many times this can be done automatically, for example if user changes the billing country right before the payment
So let's say our customer has country set to USA / CA and then after creating subscription changes billing country to France - we should be able to show the user current price and tax.
saw many times this can be done automatically
I'm not aware of any I'm afraid
i can send you example right away
Oh, wait, just noticed the tax is changing but price not... ok makes sense, sorry
Yeah I'm not even sure a billing address change would trigger prorations (and thus an invoice)
I would rather block changing it, but only good to display the Tax + price as it would be informative for the user
anyway, if we create subscription, we can immediately ask for upcoming invoice right? and parse the numbers to the user?
Yep, exactly. Pass the ID with the subscription parameter
Ok, just one scenario to be sure -> user creates subscription, doesn't pay for it. Refreshes the page, we do not track this subscription -> the user creaates another one
Which invoice would be fetched, always the newst?
Well they'd be separate Subscription objects, right?