#mike.not.guilty
1 messages · Page 1 of 1 (latest)
When you say "30 items" or "15 items", in stripe terms does that mean that you allow quantities of up to 30 or 15?
Or are these 15-30 distinct things on the subscription itself?
The items have nothing to do with Stripe. Its a price model thing: for example „with this Product 100 People can use your Software“. While the Next more expensive product allow 200 Users.
I only want to sell 1 quantity for each subscriber
Ah gotcha, so the items are a concept in your system, they aren't represented on the Stripe object. So is the main question is if you can restrict the Customer Portal to only allow switching between those two products? That is possible, looking for the docs now...
Yes, basically I want a Solution that doesnt really need a lot of Coding. Customer portal where i can disable products or something like a „switch Subscription“ Session where I can send the user to the checkout Page where he can confirm his changes with all the price Details.
Awesome, you can definitely specify what plans you want to allow your customers to switch between. The doc itself isn't that informative
https://stripe.com/docs/customer-management/configure-portal#configure-subscription-management
But if you go to your configuration page in the dashboard page, the settings themselves are pretty intuitive
https://dashboard.stripe.com/settings/billing/portal
But this does apply to all Customers Right? Is there a solution where I can specify the possible Products while creating the session URL for the customer? Because every user may uses a different Products with different number of active Items.
You can actually use the API to specify and manage multiple configurations https://stripe.com/docs/api/customer_portal/configurations/create
So you can create one of those configs, specify a set of products for that, then pass the ID of the appropriate config when creating your customer portal session https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-configuration
So I need to specify n configs (n = number of Products) and Safe the config ids on my Server. And for each scenario i have to pass the correct config id
Sounds like a good solution! Would be even better if i Could manage all configs via the stripe Dashboard. 🙂
Yeah, I'll put in feedback for that. You can manage the dashboard config from the API but we don't allow all of the configs to be changed on the dashboard at the moment
Thanks!!