#nn87-checkout-proration

1 messages · Page 1 of 1 (latest)

visual lotus
#

Unfortunately you can't really do that.

#

But the billing cycle anchor will always be the day that the subscription is created so there won't be a proration

open elm
#

oh okay

#

Is there a manual workaround that I could leverage here?

visual lotus
#

Happy to think on it. Can you describe the behavior you want here?

open elm
#

I have two plans. When the user wants to upgrade to the higher plan, I want to create a checkout session which would use the user's previous payment details and bill the prorated price in the next invoice

#

I completely rely on stripe's checkout to take details from the user to checkout

visual lotus
#

That can allow a user to switch plans and you can choose the proration behavior for when they do

open elm
#

Sure. I'll explore this.

#

When was the customer portal launched?

open elm
#

Isnt there any way to prorate when using stripe.redirectToCheckout

#

?

lucid drift
#

Redirecting to checkout doesn't have any effect on the checkout object itself, so you can't specify you want prorations there

open elm
#

Any way when using checkout.sessions.create()?

lucid drift
#

No, there isn't a way to specify it there either. To be clear - when working with an existing subscription and switching between two plans you wouldn't use a Checkout Session. Checkout is specifically for when you're creating NEW subscriptions

open elm
#

Okay fair enough