#vivek mahajan
1 messages ยท Page 1 of 1 (latest)
Hello ๐
How can I help?
I have 3 websites with different subscription plans, how i can manage all from a single stripe account?
One option is, you create separate prices/products for different websites.
The other option is, you can create separate connected accounts for the websites and use Stripe Connect instead.
https://stripe.com/docs/connect
https://stripe.com/docs/connect/collect-then-transfer-guide
The second option allows you to add more "websites" (connected accounts) later on without changing much in your integration.
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
You will need to create separate products/price objects for these
The names won't dynamically change
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
It really depends on how you build the website. Stripe doesn't automatically show products on websites owned by you.
Each product/price is a separate object and will have a unique ID. It is your integration so you would likely have a better understanding of how you'd want them to show up on your website.
https://stripe.com/docs/invoicing/products-prices
I am using stripe dashboard for subscription
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?
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
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
You can create multiple customer portal configurations that allow different products https://stripe.com/docs/customer-management/integrate-customer-portal#configure
You can set the allowed products on this property of the configuration 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.
if i redirect user to customer portal which variable defines that which subscription will show if there are multiple suscriptions?
All of their subscriptions will be shown I believe. That setting will determine which subscriptions can be modified
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?
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
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?
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Sorry not getting
if i send configuration id how it will know which products to show?
how to link products with customer portal?
You set the IDs of the products to show in this property of the portal configuration 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.
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?
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.