#Vatsal

1 messages · Page 1 of 1 (latest)

junior zephyrBOT
lilac vapor
#

I have 2 different products,

I want user to allow update their plan with one product only at a time

buoyant rain
#

In the Stripe hosted customer portal?

lilac vapor
#

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

buoyant rain
#

That setting should restrict that in the customer portal as far as I know. Are you seeing something else happen here?

lilac vapor
#

I haven't tested that yet, I am about to integrate this

#

just wanted to know if this is possible or not

lilac vapor
buoyant rain
#

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

lilac vapor
#

which type of api configuration

buoyant rain
#

Same settings, that doc is about handling them programmatically

lilac vapor
#

any reference example for this type of config ?

buoyant rain
lilac vapor
#

"subscription_update": {
"default_allowed_updates": [],
"enabled": false,
"proration_behavior": "none"
}

this object is for management of restriction ?

buoyant rain
#

Yes

lilac vapor
#

"default_allowed_updates": [],

with this I can manage product ?

buoyant rain
#

Yes that would define what prices the user can switch to

lilac vapor
#

array will consist product name ?

buoyant rain