#abishek-subscription-setupfees
1 messages · Page 1 of 1 (latest)
@round river what product(s) are you using? Checkout or the Subscription API directly?
custom checkout
using elements to store the card and then charge the user for the line items
?
Are you using the Subscription API? I'm sorry it's important since there are dozens of ways to use our API
yes the subscription API
Gotcha so when you call the Create Subscription API https://stripe.com/docs/api/subscriptions/create in the items parameter you pass a list of recurring Price(s) for the Subscription
There's another parameter: https://stripe.com/docs/api/subscriptions/create#create_subscription-add_invoice_items
that lets you add extra one-time Price(s) to the first Invoice
abishek-subscription-setupfees
what if there are multiple subscription items can I still use create subscription API to bill multiple subscriptions and one-time items?
yes
how do I add the other subscription items ?
so, we have a custom cart/checkout that can include multiple subscription and one-time payment items
and is there a way to do this without the subscription API?
The Subscription API is the right way.
What have you tried? Right now it seems you're confused but not even trying. And trying would solve the confusion in one minute
add_invoice_items can be an array of one-time Prices
items can be an array of recurring Prices
A Subscription can have up to 20 recurring Prices
ok, let me try that. And if the cart only has multiple one-time line items
also, can you show me how I would go about doing it if I were to use the Stripe Checkout page
ok, let me try that. And if the cart only has multiple one-time line items
Then you wouldn't use the Subscription API at all in this case
For Checkout https://stripe.com/docs/checkout/quickstart
that's likely drastically easier for you. You can add multiple line items, whether recurring or not. If all of them are one-time you choose mode: 'payment', if one or more are recurring you choose mode: 'subscription' and we do the rest
highly recommend starting with Checkout in Test mode
ok. on the stripe checkout, is there a way to add a checkbox for accepting terms and conditions?
ok, thank you
sure thing!