#box - trials
1 messages ยท Page 1 of 1 (latest)
Unfortunately not at the moment. If you are using Checkout, you have to specify the trial period days for the subscription when creating the session
You could in theory do something like make the coupon discount the first payment completely and then on your backend modify the subscription to be trialing for however long, but what exactly is happening may be unclear to the user there
Great no problem, thanks so much. So to clarify, best way if using checkout would be to specify the trial period on the subscription itself?
Yes, that is typically how it is done now. You can specify the trial length via trial_period_days or trial_end in the subscription_data argument when creating your subscriptions https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_period_days
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Amazing, thanks so much ๐
box - trials