#davidbowman-trials

1 messages ยท Page 1 of 1 (latest)

thorn perch
#

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

mellow matrix
#

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

thorn perch
#

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

mellow matrix
#

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.

thorn perch
#

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)

mellow matrix
#

Thank you, that's helpful! We can close this out.

thorn perch
#

๐Ÿ‘