#nsad_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/1310969420172234835
đ 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.
What's the problem exactly?
Hello, i am create configuration using code, example;
configuration_portal = stripe.billing_portal.Configuration.create(
features={
"customer_update": {"enabled": False},
"invoice_history": {"enabled": True},
"payment_method_update": {"enabled": True},
"subscription_cancel": {
"mode": "immediately",
"enabled": True
},
"subscription_update": {
"enabled": True,
"default_allowed_updates": ["price"],
"products": {
"prices": ["price_1QPP7cLD7F1SKXUOvtFh8eBL"],
"product": "prod_RHz5wYvUOFhcC2"
}
}
},
)
This subscription cannot be updated because the subscription update feature in the portal configuration is disabled
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Or where do you see the error?
req_gH7304lNNmK2Vz
You should also provide the Configuration ID: https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-configuration
You create the configuration, then create a session with the configuration ID
configuration_portal = stripe.billing_portal.Configuration.create(
features={
"customer_update": {"enabled": False},
"invoice_history": {"enabled": True},
"payment_method_update": {"enabled": True},
"subscription_cancel": {
"mode": "immediately",
"enabled": True
},
"subscription_update": {
"enabled": True,
"default_allowed_updates": ["price"],
"products": {
"prices": ["price_1QPP7cLD7F1SKXUOvtFh8eBL"],
"product": "prod_RHz5wYvUOFhcC2"
}
}
},
)
portal_session = stripe.billing_portal.Session.create(
configuration=configuration_portal.id,
customer=stripe_customer_id,
return_url=return_url,
locale='pt-BR',
)
its correctly, but show the same error
Could you please share the new Request ID?
req_CgIYgqNFLiobvC
I don't see that you're providing the configuration ID here. This seems to have a different set of parameters than the code above.