#davidbowman-trials
1 messages ยท Page 1 of 1 (latest)
While this method of adding a price to a subscription is no longer recommended, it does still work. Is there a reason you don't want to set the trial on the subscription level (instead of the price)?
It makes me nervous to use something that isn't recommended especially since no explanation is given as to why it's not recommeneded.
Also we use Checkout
Ah, if you use Checkout then you definitely can't use this - you should be setting the trial when you create the Checkout Session instead
Is this done via API? Apologies, I am not a developer and my ignorance could be showing. I can relay this to our dev team.
Yes, this would be done through the API - when creating the Checkout Session you'd either set subscription_data.trial_end or subscription_data.trial_period_days, which will add a trial to the Subscription that is created in Checkout (see https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_end)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you, that's helpful! We can close this out.
๐