#votsircp-Subscription
1 messages · Page 1 of 1 (latest)
Yes you can do this, From the Step 3 here, just specify more Price Id that you want: https://stripe.com/docs/billing/subscriptions/build-subscription#create-session
you can have multiple line_items, one-off and recurring
hey orakaro, thank you. let me check
the price object can indicate if it's a subscription or one time payment?
yes, when you create the price, you will be able to choose
i see
thank you
we already created products
can we mix products with prices on line_items?
ok, nevermind, i think my last question doesn't make sense
the session object contains only one payment option
so it can be a single price or a product. is this correct?
i'm sorry, i still don't know how to do this
where do i do this?
The Checkout Session can have multiple line_items, each of them you can specify a Price object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
it's an array
so we pass price objects in the line_items, not products or plans?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
we have already created a series of products on our stripe account. you mean we need to pass the price_id linked with each plan?
i can't find the price_id of plans
Normally you would create Price separately and specify Product Id, right? Did you create Price objects?