#jojilede
1 messages ยท Page 1 of 1 (latest)
Good question. There are a couple ways you can do this, trying to think of the best way to go through them all
Wow nice to know! I'm excited ๐
So one way to achieve this would be with subscription schedules. You could take a one time payment and then schedule the new subscription to start on Feb 1st, or to start on Jan 1st at $0 and transition to the $1000/month on Feb 1st https://stripe.com/docs/billing/subscriptions/subscription-schedules
A straightforward but a bit janky solution would be to start them on a subscription with a free trial that ends Feb 1st. This would get the same scheduling more simply but would tell the user they have a free trial which can be confusing
Can it be done in 1 session with the one-time payment checkout?
I mean, can I charge a one time payment and create a subscription in just 1 session?
By checkout do you mean a Stripe hosted Checkout page or is this your own custom page?
i want to make it as simple as possible first so I want to stick to Stripe hosted Checkout page for now ๐
Unfortunately you can't really do this with Checkout alone. Checkout does have free trial functionality for pushing off the initial start date, but then you wouldn't be able to charge upfront
That being said, you could charge the users a one time $1000 payment up front and then have your server listen for the checkout.session.completed event and then create a subscription that starts on Feb 1 (or whenever) from there
Nice! Thanks! one more thing about the checkout, does that mean I can't charge the customer right away thru stripe.checkout.sessions.create ?
mode: 'payment'
You can charge them right away, you just can't charge them right away and have a subscription created in the future
Yeah, my latest suggestion there was to make a payment mode session, listen for the webhook about it succeeding, and creating the subscription from there
Oh yeah got it, that's the problem I am getting actually(charging right away and create subscription)
I will try that suggestion about the checkout.sessions.completed(inside webhook) ๐ Thank you so much!
Sounds good, just let me know if you need any more info
Also for the record, this is how you can schedule a subscription to be created in the future https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#start-subscription-future
I will ๐ Thank you, nice to know I'm on the right track, been experimenting for few days. Thanks again!