#Omri-sepa

1 messages · Page 1 of 1 (latest)

winter mica
loud pivot
#

thank you, different question, you can send me doc of create session with phases, plans, iterations ?

winter mica
#

By "session" do you mean Checkout Session? And by "phases, plans, iterations" you mean Subscription Schedule?

loud pivot
#

yes

#

and yes

winter mica
loud pivot
#

I'm not understand, you can give me steps for it?

#

how I connect the checkout session with the subscription schedule ?

winter mica
loud pivot
#

what do you mean subscription is created? do you mean to create Checkout Session in mode: subscription?

winter mica
#

After you create the Checkout Session, you get an URL. You send your customer there, they enter their payment information, and submit the form. When then happens, you will revieve a webhook event checkout.session.completed and a new subscription will be created.

loud pivot
#

ok got you, I'll try it

civic plume
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

loud pivot
#

I need to use line_items when I create Checkout Session?

civic plume
#

Yep, that's where you pass the Price IDs/data you want your customer to subscribe to

loud pivot
#

but if I create subscription schedule with price after the user submit the debit form, I still need to use line_items when I create Checkout Session?

civic plume
#

As @winter mica explained, you would first create the Checkout Session (which will create the subscription) then you create the schedule from the Subscription ID

loud pivot
#

with Stripe::SubscriptionSchedule.create({ from_subscription: 'sub_GB98WOvaRAWPl6', }) ? and how I add the iterations to the schedule?

civic plume
loud pivot
#

ok

#

thank you

civic plume
#

So you'd need to update it after creation I guess