#oleg.moseiko
1 messages ยท Page 1 of 1 (latest)
Good question. I think you would want another item on the subscription that your user can adjust the quantity on. I am not sure if our pricing tables support multiple product subscriptions but will take a look
Does extra storage cost a different amount at each tier?
i think yes
As far as I can see, pricing tables only support one product at a time at the moment. So with a pricing table you can have users subscribe to the base plans but the additional storage would have to be handled elsewhere
If are open to creating the Checkout Sessions yourself, you can do this. You would create sessions with two items, one for the base plan and one with an adjustable quantity for the additional storage
this solutin has issue
my business plan has min user quantity
i created config and pass it to session but in this case config has not option to set min quantity
but pricing table has this option
so to fix this issue support suggeste me not pass config to session
by the way i would like to have plans with option to add storage
for example for PRO PLAN it can be quantity option
1 TB = $10 | option to add $10? per 1TB
it is ok
but don't know how to do with BUSSINESS plan where quantity is users
Yeah, the customer portal would also be an issue here. You can set quantity restrictions in the customer portal config https://dashboard.stripe.com/test/settings/billing/portal
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
And you can even make it so the user can switch between those specific base plans
But there isn't a way to restrict which additional storage price the user can use based on the base plan that they are using
So unfortunatley I think you would need to make your own custom page for managing the plans and quantities here
So you already have three products and price for the base plans, you'll also want to create three products and prices for additional storage at each tier.
What part of the price/product organization are you getting stuck on?
i don't know how to add this feature to BUSINESS PLAN
where quantity is users count
You can define it via the adjustable_quantity hash on the line item for that price https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-adjustable_quantity
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
((
So when you create your Checkout Session based on your custom page you will need to enable adjustabel_quantity for the line item that you are allowing your customer to select additional storage.
'line_items' => [
[
'price' => 'user_price',
'quantity' => 2,
],
[
'price' => 'storage_price',
'quantity' => 5,
],
],
???
Yep and adjust to: [ 'price' => 'storage_price', 'quantity' => 5, ], 'adjustable_quantity => [ 'enabled' => true] ]
Not sure what you mean exactly?
You aren't using Customer Portal here.
You are creating the Checkout Session directly
ah sorry
bt
i have users count and i need storage count
so i need have 2 price options?
'line_items' => [
[
'price' => 'user_price',
'quantity' => 2,
],
[
'price' => 'storage_price',
'quantity' => 5,
],
adjustable_quantity => [
'enabled' => true]
]
],
or?
Yep but you only want to enable adjustable quantity for the storage_price right?
again
So it should be inside that hash
user want to buy 10 users and 5 TB
can you write
$stripe->checkout->sessions->create([
????
]);
No I can't write out the entire code for you, sorry. Helping many folks at once.
All you need to do is add the adjustable_quantity param to the correct Price that you want to allow your customer to adjust