#dbjpanda
1 messages · Page 1 of 1 (latest)
Nope, Checkout Session URL is not provided after performing the updates. However, a new invoice will be generated if you choose to prorate from lower to upper tier which can be used to collect payment from the customer.
And the invoice is sent over email?
Depending on your collection_method set on your Subscription. If it's set to charge_automatically, the payment will be charged automatically from the default payment method set on the Subscription. If it's set to send_invoice, Stripe will send email to customer an invoice to complete the payment
Is it possible to show a preview before they upgrade or downgrade? Just like we do in hosted Billing portal of stripe?
Yup! It's possible to preview the proration: https://stripe.com/docs/billing/subscriptions/prorations#preview-proration
How can I send them to a stripe hosted page where they can see preview and confirm before upgrading?
Stripe doesn't send preview of hosted invoice page before confirming. You may let the user know the proration preview and confirm in your application, then confirm upgrading with Subscription Update API
I am thinking of using the Billing portal then. But will it allow you to prorate on Graduated pricing model based on quantity instead of time?
Proration will consider the time and not quantity alone
Can I configure it to turn off time proration?
It's not possible to disable time proration
Thnaks @tiny crescent for clarifying my queries. I have a couple of more queries.
Is it possible to set success URL to redirect to my chrome extension url something like chrome://my-extension/options.html
Custom URL can't be set on the Invoice as it's meant to send through the email
I meant success_url in createCheckoutSession()
Ah I see! The success_url can't be chrome extension URL. It should be HTTP such as https://...