#Bijay
1 messages · Page 1 of 1 (latest)
Sure, you can send the customer to the hosted_invoice_url field on the Invoice object: https://stripe.com/docs/api/invoices/object#invoice_object-hosted_invoice_url
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but the moment I call update subscription, the invoice seems to be paid already
that's in the test mode
Sure, that'll happen as we'll automatically finalise and attempt payment after 1 hour and use the default PM.
But in this way, the customer wouldn't know the exact amount they will be paying
they will get to know, only after they are already charged
You should build some kind of UI to preview the upcoming invoice with the changes (upgrade/prorations), using this 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.
ok
Example of this here (although this is mostly for using Stripe Tax): https://stripe.com/docs/tax/subscriptions#preview-price
Same principles apply
Thanks.. appreciate it
np!