#votsircp-Subscription

1 messages · Page 1 of 1 (latest)

high sentinel
#

you can have multiple line_items, one-off and recurring

crimson drum
#

hey orakaro, thank you. let me check

#

the price object can indicate if it's a subscription or one time payment?

high sentinel
#

yes, when you create the price, you will be able to choose

crimson drum
#

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

crimson drum
high sentinel
#

The Checkout Session can have multiple line_items, each of them you can specify a Price object

#

it's an array

crimson drum
#

so we pass price objects in the line_items, not products or plans?

high sentinel
crimson drum
#

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

high sentinel
#

Normally you would create Price separately and specify Product Id, right? Did you create Price objects?

crimson drum
#

let me double check

#
  • Add product
#

it's not separated

#

these are the plans

#

ok, i found it. line_items can contain price_id or plan_id for subscriptions