#nn87-checkout-proration
1 messages · Page 1 of 1 (latest)
Unfortunately you can't really do that.
You can set some subscription settings with checkout https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data
But the billing cycle anchor will always be the day that the subscription is created so there won't be a proration
Happy to think on it. Can you describe the behavior you want here?
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
Ah, in that case have you heard of our customer portal? https://stripe.com/docs/billing/subscriptions/integrating-customer-portal
That can allow a user to switch plans and you can choose the proration behavior for when they do
Redirecting to checkout doesn't have any effect on the checkout object itself, so you can't specify you want prorations there
Any way when using checkout.sessions.create()?
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
Okay fair enough