#viper-disableprorations-customerportal
1 messages ยท Page 1 of 1 (latest)
HI again ๐
Checkout is only used to create new Subscriptions. There isn't a proration that can occur.
Which is why you get that error
Oh
What are you trying to do?
I am trying to remove proration from the customer portal, actually. Since my project is based on credits, the user may consume all of them and then switch plans. Hence, he should be billed for the full price, not the prorated one
Ah. okay
Sorry for being so bothering ๐
So the proration_behavior setting only applies to each specific change.
To make this change for your Customer Portal you need to set it in the Configuration object here
https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-proration_behavior
If you set features.susbcription_update.proration_behavior="none" there and then use that configuration in your customer portal, your users will not get any prorated credits when they downgrade.
Is there a way to create such configuration via Dashboard?
But I would use Test Clocks and run through a full simulation to make sure that works for both the upgrade and downgrade scenarios you have described
Yep, I am constantly using those... I couldn't find a way to link test clocks to already existing subscriptions tho, which is a bit annoying
Hmmm .. ๐ค
I'm not sure. Since this server is focused on devs coding integrations with the APIs, all our advice is focsued on the APIs.
And yes you need to creeate a new Customer and new Subscriptioin to use a test clock so it's best to code an end to end simulation to verify your expected behavior.
Thank you so much once again, and once again, sorry for bothering
No worries! It's why we are here. ๐
I'm not seeing the proration behavior in the Dashboard settings here https://stripe.com/docs/customer-management/configure-portal
I think this might be API only (or our docs need to be updated).
Oh NVM I did find this switch! It's in the Subscriptions section of the Customer Portal settings
Toggling it "off" should do what you want
But I would definitely test this out. Manually if you don't want to use Test Clocks
Oh! That's great!
Sorry for the late response, I pushed discord away by mistake and couldn't see notifications
That's great!
I'm happy we were able to quickly find a resolution! ๐