#vivek mahajan

1 messages ยท Page 1 of 1 (latest)

true pilotBOT
vapid wolf
#

Hello ๐Ÿ‘‹
How can I help?

night rose
#

I have 3 websites with different subscription plans, how i can manage all from a single stripe account?

vapid wolf
night rose
#

ok

#

i have 3 plans in a single website like free, silver, gold. In 2nd website plans are small, medium and large. Is this possible?

#

Now if i am on website 1 it shows only ree, silver, gold

#

and on 2nd website it shows small, medium and large

vapid wolf
#

You will need to create separate products/price objects for these
The names won't dynamically change

night rose
#

If i create all these products in single account then it will show on all website?

#

I want to know how i can differentiate for all websites

vapid wolf
#

It really depends on how you build the website. Stripe doesn't automatically show products on websites owned by you.

night rose
#

I am using stripe dashboard for subscription

vapid wolf
#

Sorry but that doesn't help much. Can you provide more details about your integration?
How exactly are you building the website? What frameworks/platform are you using?

#

Are you the developer? OR are you working with a developer?

true pilotBOT
night rose
#

Yes i am developer

#

on my website after user login i redirect them to
$stripe->billingPortal->sessions->create

#

it redirect user to stripe dashboard

#

now in this
$stripe->billingPortal->sessions->create
how can i mentioned which subscription option show on stripe dashboad

#

i am sending these 2 parameters
'customer' => '',
'return_url' => '',

#

Because if i add same code in all 3 website, how it knows which subscription need to show

snow junco
#

Which Stripe dashboard? Are you sending your users to the Stripe hosted Customer portal? Or are you talking about being logged in to your own dashboard

night rose
#

Yes customer portal

#

where user can select subscription and pay by card

snow junco
night rose
#

if i redirect user to customer portal which variable defines that which subscription will show if there are multiple suscriptions?

snow junco
#

All of their subscriptions will be shown I believe. That setting will determine which subscriptions can be modified

night rose
#

Now according to you if add all products for other websites also in same account, does it show all products on each website customer portal?

#

There is only option to add products

#

no option for creating subscription 1, subscription 2 and
Able to add different products in different subsciption

#

any idea?

#

or something like this, i can create different account for different website but can manage under single login?

snow junco
#

You can create a customer portal configuration for each website to restrict customers to only see he products for one website

#

no option for creating subscription 1, subscription 2 and
Able to add different products in different subscription
Can you rephrase this part of your question? I don't fully understand what you are trying to do here

night rose
#

You can create a customer portal configuration for each website to restrict customers to only see he products for one website
How can i do this?

snow junco
#

You can use this API call to create multiple portal configurations
https://stripe.com/docs/api/customer_portal/configurations/create
And then when you create your customer portal sessions you can pass in the configuration ID to this parameter to make the session use the configuration with those products.
https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-configuration

night rose
#

Sorry not getting

#

if i send configuration id how it will know which products to show?

#

how to link products with customer portal?

snow junco
night rose
#

features.subscription_update.products
this one?

#

or this one: features.subscription_update.products?

#

One more question, if we use 3 websites in a single account, possible to differentiate customer from different website?

snow junco
#

Yes features.subscription_update.products

One more question, if we use 3 websites in a single account, possible to differentiate customer from different website?
It is but you would have to find some way to differentiate in your own code. Stripe doesn't know what site your server is creating the customer for. One thing that may help you is that customer objects can have metadata on them so you can create a metadata tag that says what site the customer is from https://stripe.com/docs/api/metadata

night rose
#

ok

#

Thank you for help

#

will work on it