#zen_parrot_12549

1 messages · Page 1 of 1 (latest)

fallen vectorBOT
silk hawk
#

Hi 👋

Are you looking to configure the no-code customer portal? Or use the API to generate customer portal sessions?

charred stag
#

Would prefer to use the no-code customer portal, but open to leaning how to use the api if necessary

silk hawk
#

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

charred stag
#

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?

silk hawk
#

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)

charred stag
#

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?

silk hawk
charred stag
#

Wait, I think I'm answering my own questions as I dive in the API docs.

#

Yep, haha. Well, thanks again for the help. Great starting point for me as I havn't dont development using API's like this before