#codeninja-trial-checkout-subscription
1 messages ยท Page 1 of 1 (latest)
Sure2 thanks for the response
Thanks for waiting
You can pass in trial_period_days when creating the checkout session in subscription mode
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.
Thanks for sharing will try this
I also noticed that when I created a Product and Price in Stripe Dashboard it has the field there that has Free Trial
Can I also use this as alternative on Checkout Session (Subscription Mode) ?
I don't think it is the recommended approach anymore.
If you hover on the legacy [i] section, it'd tell you that its not compatible with Checkout ๐
Ohh
Yeah you are right
I think I can take it from here, appreciate your time. Keep safe!
NP! ๐ Good luck