#harry89pl_docs
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/1219246206929076315
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
No you can't add one-time line items to a subscription
What is it you're trying to do exactly?
I want to to be able to buy multiple pcs of one time price in single order/checkout.
For now I'm able to create price as one time by simply not providing recurring property in data send to stripe create price endpoint. But in documentation of quantities it's described that field recurring with nested property named usage_type is required and I wonder how to do it in my case.
OK, but you're using the Subscriptions API yes?
I want to to be able to buy multiple pcs of one time price in single order/checkout.
What is 'checkout' in the context of Stripe? Which APIs/UIs are you using?
Not sure. I use stripe.prices.create() method from your js sdk. Dunno if that is part of subscriptions API or not
I'm talking about adding new prices to existing products.
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Not sure what you're trying to achieve exactly. What kind of payment integration do you have? Do you use Stripe Checkout?
No I have my own Checkout. Just sending data to stripe via API
Are you using Stripe Payment Element on your checkout?
yes
If you're using the Subscription.create() method, you can add several one-time Invoice items to the first Invoice of the Subscription with add_invoice_items, you can set the quantity there: https://docs.stripe.com/api/subscriptions/create#create_subscription-add_invoice_items
Let me write an example of what I want to achive. Maybe it will make us on the same page.
I have a product with different price option available.
-some options are subscriptions (recurring monthly,yearly or whatever) - not case which I want to implements with quantity
- other options are one time payments (you pay once and get access for some period of time or indefinitely)
Now client come to my checkout and buy single pcs of product in price option of choosing. - So far everything is working just fine.
Another bigger client let say some firm want to buy product for it's employees but they want to pay for multiple access for product but one time payment to not make it too complex for tax reasons or whatever.
And my question is. Is it possible to add such option to my price or not?
If it's a one-time payment, you can create a standalone Invoice, instead of a Subscription: https://docs.stripe.com/invoicing/integration
You can configure the quantity when creating the Invoice Items.