#Rohit89
1 messages · Page 1 of 1 (latest)
Yup! This guide shows you how to implement Checkout: https://stripe.com/docs/billing/quickstart
Scroll to the section called Add trials
Here's more on trials for Subsriptions: https://stripe.com/docs/billing/subscriptions/trials
Yeah, I am aware of using stripe checkout but not sure if there is way I can enable the payment collection even for free trial. I think stripe won't collect payment details for trial period on checkout session
hi, stepping in as two-shoes is away.
Yes, you can collect payment details with a free trial in Checkout. When you create the session, you'd pass payment_method_collection: always:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_collection
Aww by default it wont collect the payment in free trial. ?
By default it should, and that parameter that I shared was added later as we saw some cases: https://stripe.com/docs/payments/checkout/free-trials
And when trial period ends lets say 15 days. The subscription status still remain active? or paused?
What will be status of subscription when trial period ends?
And what is the webhook event type when trial ends?
You can learn more about how subscriptions with trial work here, https://stripe.com/docs/billing/subscriptions/trials#:~:text=When the trial ends%2C we generate an invoice and send an invoice.created event notification. Approximately 1 hour later%2C we attempt to charge that invoice. A new billing cycle also begins for the customer when the trial ends. When the trial end, the subscription's new billing cycle begins and an invoice.created event is fired. You can play with the setting on your Dashboard to send an email to your customer 7 days before the trial ends.
That is fine, just want to know status of subscription changes when trial ends?
Yes, it will become active.
Ok status remain always active after trial ends and i have not paid yet
That is correct. You can look at the latest_invoice on the subscription or listen for invoice.paid events or list all invoice for a given subscription using the API
Thanks