#raf21

1 messages · Page 1 of 1 (latest)

jovial phoenixBOT
polar spire
#

For what specifically? Subscription updates?

woeful flint
#

I want to create products in BRL for Brazilian users and products in USD for global users. I want when a Brazilian user accesses the customer portal, they only see products in BRL

polar spire
#

For subscription update though right?

woeful flint
#

Yes

#

If users want to upgrade/downgrade their subscription, they would only see the products of their currency

polar spire
#

So you could do this by having multiple customer portal configurations where you specify which products are available for a given country: https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-products. The issue is you'll then need to detect the customer's location on your site prior to creating the customer portal session, so that you know which configuration to pass: https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-configuration

woeful flint
#

Is it possible to create a new customer portal thorough the stripe dashboard?

polar spire
#

Yeah but to achieve what you want you need to use code

#

You need to detect which configuration to use based on location

#

With code

#

And then also with code create the customer portal session via the api and pass in the proper configuration for their location

jovial phoenixBOT
woeful flint
#

So it is not possible to create new customer portal through the dashboard?

#

Only through codes