#Kushal raut

1 messages · Page 1 of 1 (latest)

quick heartBOT
hexed lantern
tired basin
#

i want to give user free subscription for 30 days without any asking for any payment methods.

hexed lantern
#

Yup, that guide tells you how to do that

tired basin
#

sure. just to clarify
I will have to follow following steps?

  1. create a customer
  2. i might need to create a checkout session with
    subscription_data={
    "trial_settings": {"end_behavior": {"missing_payment_method": "cancel"}},
    "trial_period_days": 30,
    },
    payment_method_collection="if_required",
    (https://stripe.com/docs/payments/checkout/free-trials#section-1)
    then do i need to call the create subscription api?

Use Stripe Checkout to collect a customer's information for a free trial without collecting their payment details.

hexed lantern
#

Nope, that Checkout Session will create a Subscription for you

tired basin
#

great thank you so while listening for the web-hook which events should i listen to for subscription success and for sending email to user when trial end?

hexed lantern
tired basin
#

great, thank you @hexed lantern. this is very useful saved so much of my time.