#beaid-subscriptions
1 messages · Page 1 of 1 (latest)
@hallow schooner hi! well, that depends a little! The Subscription starts at the time the customer completes the payment in that Checkout Session.
As for end, what do you mean by that? Subscriptions in Stripe typically just recur every billing period until they cancel.
I want that this subscription starts on the next month and should run 6 or 12 months. I want to add this parameters (start, 6 or 12 times) to this array, if possible.
looks like I have to create schedules? but how to integrate them into the checkout session creation
yeah the only way to do that is with schedules, and you can't integrate them into the Checkout Session unfortunately
what you'd generally do in this case is when you handle the successful creating of the subscription in your checkout.session.completed webhook handler, you can create a Schedule at that time to manage the subscription going forward.
ok, thx. and this (checkout.session.completed) is before a payment will be executed then? If I then change starte date, no payment will be executed?
until start date arrived
no, that event is after the customer has completed the payment in the Checkout Session and the subscription started.
you can't really use Checkout to start a Subscription without actually starting it now("The Subscription starts at the time the customer completes the payment in that Checkout Session" as I mentioned). It doesn't support that use case natively since it doesn't integrate with Schedules unfortunately.
You could I suppose :
- use Checkout in setup mode to just collect the card details(https://stripe.com/docs/payments/save-and-reuse?platform=checkout) and the start the schedule afterwards(it's a bit awkward to message to the customer what's happening since it won't natively say anything about subscriptions in the Checkout page, but you can do it!)
- not use Checkout and build a custom form that accepts the card details an creates the schedule and messages what's happening to the user. IMO I'd go with the other option.
I understand, thx. I need this for a product which has very less subscriptions and need a low code solution. So I just collect the payment method and then add the subscription in the stripe dashboard. Thx for help.