#Karan28-Checkout

1 messages · Page 1 of 1 (latest)

lament axle
#

Hi

#

Do you mean you want to keep the Subscription trial a bit longer?

#

You can specify trial_end directly when you create a Session

sleek steeple
#

No I don't want to give trial, but start subscription on specific future date

#

Is this possible with mode as SUBSCRIPTION in checkout session
ON webhook call I change date for same subscription

lethal siren
#

Hi! I'm taking over this thread.

#

You can't change the start date of a subscription after it was created. If you want to create a subscription in the future, you need to use Subscription Schedule which doesn't work with Checkout Session.

sleek steeple
#

But I do need to let user add payment method everytime it clicks on SUBSCRIBE, so I can create checkout session with SETUP mode and pass subscription details in metadata,
And on webhook call can create schedule subscription from metadata and do entry in my DB as well.

I guess this can work. Please suggest

#

webhook will be checkout.session.completed

lethal siren
#

If I understand correctly, you want to:

  • Collect a PaymentMethod with a Checkout Session in setup mode
  • Then in checkout.session.completed create the subscription schedule with the new PaymentMethod
    ?
sleek steeple
#

Yes I checked docs and found this way.but I need to pass my subscription details which can be large in metadata

#

So from that I can schedule subscription in
checkout.session.completed

lethal siren
#

Yes this should work.