#zlatko4796
1 messages · Page 1 of 1 (latest)
Hello
This should be possible via using Customer Portal Configs.
So basically, based on the Price that the user is currently subscribed to, you create a config with the necessary proration_behavior (https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-proration_behavior)
Ah, so I would need to have a custom Customer config based on the existing subscription
Yep
So what value would I need to use for my downgrade example? I guess if I use disable_prorations it won't prevent the user from downgrading right away?
My understanding is that I would disable the proration, but this won't prevent the plan switch. Or does it mean that Stripe will keep the user on the current subcription and only downgrade at the end of the billing period
Something similar like adding Pending Subscription
For updates, it will only charge immediately if it is a different interval (like monthly --> yearly) or you use proration_behavior: 'always_invoice'
So if you set none then there will just be an update at the end of the period with no proration involved assuming the Prices are both the same interval
perfect, I'll test this 😄
What would happen If the user would switch from yearly -> monthly ?
Based on the docs it means that I can't avoid proration and customer having a positive balance because the charge would occur right away?
If that's the case I guess not allowing to switch from Annual to Monthly would be the solution?
or can I use proration_behavior: never and it would behave the same as downgrade from Pro to Basic
Yeah they will always be invoiced immediately in that case, however you can still disable proration if you want
so basically proration_behavior: never is intended for downgrade scenarios if we want them to switch the plans at the end of the billing period instead of immediately
No that will disable any proration, but the new invoice will always be cut immediately if the interval changes
So this means if I disable proration when going from Annual to Monthly the user won't have any positive balance, but this means they'll lose the money.
Do they get a notification in Customer portal if they try to do this?
Will do. Thank you for all the information