#geo_best-practices
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1395430836261879828
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello there
Hi
Hmmm have you tried creating a Configuration (https://docs.stripe.com/api/customer_portal/configurations/create) for the accounts that haven't enabled via the Dashboard?
I think what is happening is that the default configuration from the Dashboard is attempting to be used here but that hasn't been "created" yet since the Connected Account hasn't activated the Billing Portal.
We aren't super familiar with the Dashboard (since we just focus on the API) but the first thing I would test is creating a configuration and seeing if that is a workaround.
I see. For now we've been solving this by manually logging into each account that starts offering subscriptions and turning that setting on for them. Let me explore the Configuration route to see if I can find a solution for this
Is there a way to do it via api?
Yes you can create a Configuration via the API (linked above)
But no you can't enable the Customer Portal on a Connected Account like you can via the Dashboard through the API.
Ah I think the Configurations route is not going to work because without the setting turned on I can't even create the link for the Configurations to take effect
Are you already passing a Configuration?
Can you share an example erroring request so I can look at that specifically?
hmm give me a sec
it's this error
'No configuration provided and your live mode default configuration has not been created. Provide a configuration or create your default by saving your customer portal settings in live mode at https://dashboard.stripe.com/settings/billing/portal.',
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yep so if you create a Configuration via the API and pass that to the Portal Session (https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-configuration) then I'd expect it to satisfy that.
ah ok
This would have to be done for every client every time or does doing it once satisfy this requirement?
You would have to pass a Config each time if they haven't enabled the default Config via their Dashboard.
Sure thing!
Have a good one!