#Karan28-Checkout
1 messages · Page 1 of 1 (latest)
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
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.
To learn more about subscription schedule: https://stripe.com/docs/billing/subscriptions/subscription-schedules
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
If I understand correctly, you want to:
- Collect a PaymentMethod with a Checkout Session in setup mode
- Then in
checkout.session.completedcreate the subscription schedule with the new PaymentMethod
?
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
Yes this should work.