#Omri-sepa
1 messages · Page 1 of 1 (latest)
Hi! We have this page about SEPA and subscriptions: https://stripe.com/docs/billing/subscriptions/sepa-debit?platform=checkout
And for Connect specifically I would recommend checking these links:
thank you, different question, you can send me doc of create session with phases, plans, iterations ?
By "session" do you mean Checkout Session? And by "phases, plans, iterations" you mean Subscription Schedule?
Got it! Unfortunately you cannot create Subscription Schedule with Checkout Session. What you could do instead is create a regular subscription with Checkout, and then convert that subscription in a subscription schedule https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#existing-subscription
I'm not understand, you can give me steps for it?
how I connect the checkout session with the subscription schedule ?
Step 1: create a Checkout Session in mode: subscription
Step 2: once the user completes the payment and the subscription is created, create the subscription schedule like this https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#existing-subscription
what do you mean subscription is created? do you mean to create Checkout Session in mode: subscription?
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.
ok got you, I'll try it
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
I need to use line_items when I create Checkout Session?
Yep, that's where you pass the Price IDs/data you want your customer to subscribe to
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?
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
with Stripe::SubscriptionSchedule.create({ from_subscription: 'sub_GB98WOvaRAWPl6', }) ? and how I add the iterations to the schedule?
Yep! You can use phases paramater with the from_subscription parameter:
When using this parameter, other parameters (such as phase values) cannot be set. To create a subscription schedule with other modifications, we recommend making two separate API calls.
So you'd need to update it after creation I guess