#Vatsal
1 messages · Page 1 of 1 (latest)
I have 2 different products,
I want user to allow update their plan with one product only at a time
In the Stripe hosted customer portal?
yes
I want to do setup something like user can choose only a horse owner subscription or normal subscription
and that will be based on user type
That setting should restrict that in the customer portal as far as I know. Are you seeing something else happen here?
I haven't tested that yet, I am about to integrate this
just wanted to know if this is possible or not
if user has bought a product-01 plan
and later on if that user tries to change / cancel or update existing plan
that user will be able to see only product-01 plan with different options
OR
all the products plan will be visible
They'll be able to see all of the other products and plans that you have set in those settings
If you want to restrict what they can see based on what they already have, you can create multiple configurations with the API and choose which one to use based on the plans that they already have
which type of api 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.
Same settings, that doc is about handling them programmatically
any reference example for this type of config ?
We have this doc if it is helpful https://stripe.com/docs/customer-management/integrate-customer-portal
"subscription_update": {
"default_allowed_updates": [],
"enabled": false,
"proration_behavior": "none"
}
this object is for management of restriction ?
Yes
"default_allowed_updates": [],
with this I can manage product ?
Yes that would define what prices the user can switch to
array will consist product name ?
You would put the ID of the products prod_123 and the prices price_456 in to this parameter https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-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.