#olafwrieden

1 messages · Page 1 of 1 (latest)

fallow iceBOT
north mural
#

hi! well the API doesn't have any direct logic for that I think, but you could check the status of the customer/subscription before redirecting and create a Config object with the set of options you want them to have, and then create+redirect to a Session with that config
https://stripe.com/docs/api/customer_portal/configurations/create

you can use https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-enabled to disable the ability to change the subscription and/or https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-products-prices to control what they can change to

wooden otter
#

Thank you @north mural - I'm going to need a minute to read into this. I already know about portal configurations but not about the ability to set what they can change to. Let me see if I can test it out.