#tofu-checkout-pricingmodel

1 messages · Page 1 of 1 (latest)

neon hemlockBOT
full stump
#

@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?

sand jolt
#

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

full stump
#

what have you tried?

#

tofu-checkout-pricingmodel

sand jolt
#

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.

full stump
#

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

sand jolt
#

Ive checked everywhere

#

Kind of disheartening to hear that its covered many times becuase I couldnt find it once

full stump
#

google the words checkout trial period and it's literally the first result for me

#

not even saying stripe

sand jolt
#

Thank you, I think subscription_data should work

full stump
#

and many more docs cover this in details too

#

but yes that's what you want

#

@sand jolt did it work?

sand jolt
#

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!