#suren9213
1 messages · Page 1 of 1 (latest)
Hello 👋
There are a few limitations when it comes to being able to update subscriptions using Customer Portal
I'd recommend going through the limitations list first if you haven't already done so
https://stripe.com/docs/customer-management#customer-portal-limitations
I think I did all requirement for that but it's still is not working
Specifically this piece:
Multiple products
Usage-based billing
Sending invoices for collection. Read more about the collection_method parameter. If you use the Dashboard to create the subscription, you make this selection in the Payment method section.
Unsupported payment methods```
If you share the subscription id I can take a look, but likely it's due to one of the above
Hm ok. How did you create the billing portal session?
Can you share the request id https://support.stripe.com/questions/finding-the-id-for-an-api-request for that specific customer/sub?
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
request id for billing portal session?
For the api request to create the session, yes
req_55v6HKe2Rxnzot
Oh ok. So you do see the update plan button? The issue is just that there isn't a list of different products that you were expecting?
Yes that's correct!
Got it let me see
sure
Ah I don't see the product of the subscription in your billing portal configuration. It needs to be there to be allowed to be updated. See: https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That's not the configuration being used
This is the id
bpc_1N3hhwGWJUZQaHEZtoxmqHLH
And prod_Nu7jfEr5j4FjfA, the product on the subscription, isn't in the configuration
So I need to include the bpc id in the function create billing portal session correct?
If you want to override the default, which is bpc_1N3hhwGWJUZQaHEZtoxmqHLH, then yeah
Yes but in this function billingPortal.sessions.create there is not option for include bpc id
It's here: https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-configuration
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.