#internalservererror-portal-configuration
1 messages · Page 1 of 1 (latest)
You could achieve this by using multiple portal configurations: https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-products
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
When a user is on premium or annual, you'd just need to use a portal configuration that doesn't support updating to a new price
Ah exactly what I was looking for. Thank you 🙂
No problem. And you can pass the configuration id when creating the portal session here: https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-configuration
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
internalservererror-portal-configuration
bpc_* would be the configuration id?
Yeah
Am I able to create the configurations within stripe, similar to how i create a price, and then just store them as enums in the api? or do they need to be generated frequently
No you just need to create once and you can reuse it