#-vineet_unexpected
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/1419697514767974422
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- -vineet_best-practices, 5 hours ago, 16 messages
- -vineet_best-practices, 2 days ago, 7 messages
- -vineet_best-practices, 3 days ago, 187 messages
Hello, that error message seems to say you passed the parameter as "billingmode" rather than "billing_mode" (note the underscore). Have you tried this code but with billing_mode instead?
Can you send me the request ID from that attempt? It should be a req_123 in the response headers
Yep, can totally look at logs for that
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
here is the request id
Ah it looks like the API version is 2022-11-15 for that API request, you need to use an API version that is 2025-06-30.basil or later
Because your account has a default version
Ooo
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay got it
i have another question
we can generate a configuration for our billing page, which can be passed as parameter
while creating the billing configuration, i set the ability to cancel the subscription to false and i got back an id
to give context, my stripe account is used for seperate projects, if i pass generate this configuration id will it affect the billing page of the other project ( i m not passing the configuration in the parameter while creating billing portal session )
@thorny owl
Yep totally supported via the API https://docs.stripe.com/api/customer_portal/configurations/create
This doc demonstrates how to work with it in the API
https://docs.stripe.com/customer-management/integrate-customer-portal
my question is
will it affect my other project billingportal ?
note that i m not passing any configuration id there while creation the session url for billing portal
i m concerned that if i create the configuration that might also get affected
The settings that you change in your dashboard is your default billing portal configuration. You can change that via the API if you want, or you can create other configurations and just work with those in the API. The API objects have an is_default property that tells you whether the configuration is your default or not
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i dont see any way to disable the subcrption block
As in how to disable the subscription cancel functionality? That is this property https://docs.stripe.com/api/customer_portal/configurations/object?api-version=2025-08-27.basil#portal_configuration_object-features-subscription_cancel-enabled
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
this is only for subscription cancel button
i dont want to show the subscription block at all
You can cancel the subscription update as well, can you test to see if disabling both hides the subscription list? If not, I don't think there is a way to completely hide it at the moment but I can file feedback about that