#pepski
1 messages ยท Page 1 of 1 (latest)
HI ๐ no, it is not possible to delay the start of a Subscription via Checkout Sessions.
There are a couple avenues you could explore to build this flow, but it may be a bit involved.
You could:
- Use the Checkout Session to immediately collect payment by running it in
paymentmode. - Create a Subscription Schedule (allow you to schedule Subscriptions to start in the future) when you receive confirmation the payment was successful.
- Have the Subscription Schedule create the Subscription with a trial period so your customer isn't immediately billed again when the Subscription starts.
And how I will collect payment method if I will use 2] ?
When you create the Checkout Session, you can use payment_intent_data.setup_future_usage to instruct the Checkout Session to optimize the payment method for future usage, then you can provide the ID of that Payment Method to the Subscription when you create it.
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage
It is worth noting that not all types of payment methods support this approach, and options like Apple Pay could run into problems if you try to reuse them later:
https://stripe.com/docs/apple-pay?platform=web#recurring-payments
mm.. Okey, thanks for your advice... So there is no other option when we want to start subscription on particular day at future? The only way is create checkout with no subscription but pay option, mark it as off_session, than attach it to subscription and hope that it will always work?
maybe setup trial until the first day of next month? We can handle on our side that 'trial' don't mean active subscription. Is this way possible?
You could do a trial, but doing so means the Checkout Session won't immediately process a payment. The first payment will be processed at the beginning of the first billing period.
yes, okey, thanks