#HugoRS
1 messages · Page 1 of 1 (latest)
What webhooks event triggers when starting subscription trial. customer.subscription.created
?
And for the parameters when starting a trial, is it only trial_end that needs to be filled out?
You can find all Subscription's webhook events here:
https://stripe.com/docs/billing/subscriptions/webhooks#events
You can listent to this event customer.subscription.created
I invite to check this guide for all posisble combinations:
https://stripe.com/docs/billing/subscriptions/trials
Alright thank you. And when we want to add the trial when creating a checkout session. What parameter are we looking for?
It is this "subscription_data.trial_end" right?
We want to collect the payment method
Set payment_method_collection to always:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_collection
You can find more details about Subscription, Checkout and free trials in this guide:
https://stripe.com/docs/payments/checkout/free-trials#section-1
Thank you. Have a great day!