#moe-loubani_api
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/1319697728502108202
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, we document this here: https://docs.stripe.com/customer-management/integrate-customer-portal . Specifically, you would need to pass that configuration id when you create the Customer Portal Session, https://docs.stripe.com/customer-management/integrate-customer-portal#customize
the problem is that we aren't saving customer ids so we don't really want to (or rather cant) create a session
what we want to do is to retrieve the URL that is displayed here: https://dashboard.stripe.com/test/settings/billing/portal after clicking 'activate' and then set those settings that you see on that page through the API
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You would need the customer id if you want to use the API and create the session. What you're attempting is not possible
how about just setting the default configuration through the API is that possible? (I mean the one that you see when you visit the page above at /settings/billing/portal)
If you do not provide a configuration id, https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-configuration it would take the default one yes. However, you would still need to pass the customer id for that session right?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
for example, if I go to that page now and click activate I get this link: https://billing.stripe.com/p/login/test_3cs29d6Bl9B45l65kk this one works for all customers because it still requires the customer to log in but how can i set the configuration for that customer portal that they now log into
because that way i dont need their customer id (the link is the same for all customers) but how can i set the configuration for those customers
it would be on that settings page, https://dashboard.stripe.com/test/settings/billing/portal
any way to do that through the API? (set that default config)
There is not, you either make the settings in the Dashboard and click on 'activate'. Or, use the API entirely to create the configurations and create a session with the customer id.
ahh ok just wanted to double check, thank you again for the quick replies!
Sure