#zen_parrot_12549
1 messages · Page 1 of 1 (latest)
Hi 👋
Are you looking to configure the no-code customer portal? Or use the API to generate customer portal sessions?
Would prefer to use the no-code customer portal, but open to leaning how to use the api if necessary
Okay we are focused on advising developers coding integrations with Stripe APIs on this server so that is where our advice is focused
The way I would solve this with the API is that you generate two different Portal Configuration objects: https://stripe.com/docs/api/customer_portal/configurations/create
You would configure which products can be selected in the features.subscription_update.products parameter.
One configuration would be for the membership plan and another for add-ons.
When you create a Customer Portal Session you specify the ID of the configuration you want to use depending on what kind of subscription the user has
https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-configuration
Looking at the docs on the no-code portal: https://stripe.com/docs/customer-management/activate-no-code-customer-portal
It looks like you can only have one configuration
Great! Looks like the api gives exactly what I'd need to configure as needed.
Silly beginner question - how would I actually use the API? Would I just make calls to the API in, say, postman, and then see those changes reflected in the Stripe dashboard?
You need to write code
We recommend using one of our stripe libraries in one of our supported languages (PHP, Node.js, Python, Ruby, Go, Java, .NET)
Right.
When I create a configuration, I would think that is a one time operation (meaning, I create the configuration once and use it later in other API calls)
But then how would I see my existing configurations after they have been created?