#ile_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/1263036493912477738
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Yeah it's the most simple model https://docs.stripe.com/products-prices/pricing-models#per-seat where you can change the quantity later
I would recommend playing with the pricing model options in Test mode
Doesn't quantity mean the number of seats?
I would like to let the user define the price per seat.
Checkout would work if it can be used for subscriptions.
So the user would define the price per seat and the app would update the actual number of seats monthly.
"Unit" sounds also like number of seats.
So maybe the actual price per seat cannot be defined by the user (for subscriptions).
It can! https://docs.stripe.com/payments/checkout/pay-what-you-want?dashboard-or-api=api here for the guide
So you define minimum and maximum
Ahh great! Thanks.
Ah, but there are these limitations:
- You can’t add any other line items and the quantity can only be 1.
- They don’t support recurring payments
So, it won't work in my case. I would like to define quantity (seats) by the app, monthly.
Hmm okie, sorry I overlooked those limitations. Technically you would want to build your own UI to let your customer choose the price first, then programmatically setup a per-seat or usage-based price model on your backend later
That would probably mean creating a new price (with price ID) + product (with product ID) on the backend?
You can use line_items.price_data to set the amount dynamically: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items-price_data
Happy to help.