#inthisar_h - checkout subscriptions
1 messages ยท Page 1 of 1 (latest)
Hi ๐
We don't currently support the creation of subscription schedules via the Checkout Session.
so, I need to do everything manually through API, right? from creating customer to attaching payment method to customer and so on..
You could do that. Or, you could create the initial subscription via the Checkout Session and (when it is successful) you can create the Subscription Schedule from the existing Subscription using the from_subscription parameter:
https://stripe.com/docs/api/subscription_schedules/create?lang=node#create_subscription_schedule-from_subscription
inthisar_h - checkout subscriptions
huh thats nice, after the sucesss event webhook , I can update it right
Correct. So you would configure the the Checkout Session subscription_data to match what you want for your first phase of the Schedule
what is the flow? am i need set checkout session with initial month payment or i need to set it up with 0$ price ?, and then i can create other phases with success webhook event
Well what are you trying to do? You just asked about using a Checkout Session with Subscription Schedules.
What is the expected schedule you want to make?
I need to get 1st month payment, then 6 month free period and then normal regular interval and price as like 1st month and it continues until user cancel
Currently i configured checkout session with regular monthly payment
Okay, so in that case I would do the following:
- Create the Checkout Session with a regular monthly price
- Create a Schedule from the subscription object that gets generated
- Add two new phases - one with a $0/month price that repeats for 6 months and the second with the same price as the Checkout session
so the checkout session subscription doesn't intercept with schedule, after I created schedule
I mean it will update checkout session subscription to schedule phase price, am i right
Yes. Every Subscription Schedule is running on top of an actual Subscription object. The Schedule just takes care of automating the updates to the Subscription. So in this case you create the Subscription first (using the Checkout Session), then add a Schedule to it to handle the updates
so the subscription id of the customer doesn't change, then I can manage it with subscription Id..
Correct