#tofu-checkout-pricingmodel
1 messages · Page 1 of 1 (latest)
@sand jolt I don't fully grasp the pricing model and the problem with Checkout. Can you explain what does not work if you do this with Checkout?
Is it possible to create a checkout session and include the trial_days parameter? If thats possible then I think I can get it to work
I tried the super basic example that they use in the quickstart guide.
I created an endpoint that creates a checkout session. This endpoint takes in price_id from the frontend.
The problem is, there is no way to specify the trial_days when creating a subscription using checkout.
There is no trial_days parameter in the checkout.sessions.create api.
There is a trial_days parameter in the subscriptions.create api.
So I believe I have to create the subscription manually first using subscriptions.create in order to specify the trial days.
Did you look at the docs or search the docs?
Sorry, this is definitely covered in many details so I'm nudging you to search first. If I just feed you the answer you will end up asking 200 questions and it will slow you down
Ive checked everywhere
Kind of disheartening to hear that its covered many times becuase I couldnt find it once
google the words checkout trial period and it's literally the first result for me
not even saying stripe
you'd end up on https://stripe.com/docs/payments/checkout/free-trials which is one of the docs for example
Thank you, I think subscription_data should work
https://stripe.com/docs/billing/quickstart is the canonical guide and has a clear "Add trial" option
and many more docs cover this in details too
but yes that's what you want
@sand jolt did it work?
I think that works. My use case is so complicated that I still have no idea how to implement. I think I will make a support ticket.
Thank you for your time!