#dbjpanda

1 messages · Page 1 of 1 (latest)

soft sparrowBOT
tiny crescent
#

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.

naive stone
#

And the invoice is sent over email?

tiny crescent
#

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

naive stone
#

Is it possible to show a preview before they upgrade or downgrade? Just like we do in hosted Billing portal of stripe?

tiny crescent
naive stone
#

How can I send them to a stripe hosted page where they can see preview and confirm before upgrading?

tiny crescent
#

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

naive stone
#

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?

tiny crescent
#

Proration will consider the time and not quantity alone

naive stone
#

Can I configure it to turn off time proration?

tiny crescent
#

It's not possible to disable time proration

naive stone
#

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

tiny crescent
#

Custom URL can't be set on the Invoice as it's meant to send through the email

naive stone
#

I meant success_url in createCheckoutSession()

tiny crescent
#

Ah I see! The success_url can't be chrome extension URL. It should be HTTP such as https://...