#waqas-ahmad_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1286401314162741288
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there! The Stripe customer portal doesn't support creating new Subscriptions. Here are the related docs: https://docs.stripe.com/customer-management
If you want a no-code solution for creating Subscriptions, you could consider Stripe Checkout:
https://docs.stripe.com/payments/checkout/how-checkout-works
and it seems like you're looking for a per-seat pricing model based on your description: https://docs.stripe.com/products-prices/pricing-models#model-per-seat-pricing-on-stripe
Sorry for the wrong wording. I use the checkout session to create a subscription. To update/cancel I use the customer portal. How can I use the customer portal to update subscriptions based on the number of members in a group? For example, if the user wants to update from basic to premium and has 5 members in the group then the subscription is $150 ($30 * 5).
We have a fairly detailed guide on how to model per-seat pricing here: https://docs.stripe.com/products-prices/pricing-models#model-per-seat-pricing-on-stripe
and I'm just checking to see if there would be any particular problem with allowing updates in the portal for this pricing model
But in this link, there is no discussion related to update subscription in case of per seat.
try searching with command+F for "Model per-seat pricing on Stripe"
So then you would want to configure your Customer Portal to allow customers to change Subscription plans, where you would have different prices for different tiers and seat numbers. But this could get messy if you have many tiers and numbers of seats
I want to pass number of seats through code. Don't want to give options to users. Because server knows how many members are there in the group.
This is function I am using to create billing portal https://docs.stripe.com/api/customer_portal/sessions/create
The Customer Portal exists to let Customers manage certain things about their Subscriptions and payment methods. Do you want to create a Customer Portal session to allow customers to update their Subscriptions, or do you want to update Subscriptions through code?
I want to allow a customer to update their subscription through a customer portal. But the user will not enter quantity. Our system will pass
if you know the quantity you intend to update to, it's likely better to call the Update Subscription API directly yourself and implement you own UI for this.
okay