#jojilede

1 messages ยท Page 1 of 1 (latest)

narrow ospreyBOT
jade ledge
#

Good question. There are a couple ways you can do this, trying to think of the best way to go through them all

naive iris
#

Wow nice to know! I'm excited ๐Ÿ˜„

jade ledge
#

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

naive iris
#

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?

jade ledge
#

By checkout do you mean a Stripe hosted Checkout page or is this your own custom page?

naive iris
#

i want to make it as simple as possible first so I want to stick to Stripe hosted Checkout page for now ๐Ÿ˜„

jade ledge
#

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

naive iris
#

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'

jade ledge
#

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

naive iris
#

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!

jade ledge
#

Sounds good, just let me know if you need any more info

naive iris
#

I will ๐Ÿ˜„ Thank you, nice to know I'm on the right track, been experimenting for few days. Thanks again!