#sagar051192
1 messages · Page 1 of 1 (latest)
Here's what you can pass to Subscription data when using Checkout Session:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data
You can set a future timestamp to the billing_cycle_anchor but not the subscription start date:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-billing_cycle_anchor
which key i need to use?
You can't start Subscription in a future date using Checkout Session.
You can start a Subscription in a future date using Subscription Schedules:
https://stripe.com/docs/billing/subscriptions/subscription-schedules
Or you can add a trial period for the subscription:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_period_days
in all this case first payment will deduct now?
i mean at a time of subscription creation?
No, for subscription schedule the payment will be attempted only when the susbcription will be started
When using trial period, same, there'll be no first payment untill the trial period ends
Is it possible to use checkout.session with subscription schedule?
No
Than how to assign card details with this so payment deduct in future?
Do you have any demo code or example for subscription schedule ?
I invite you to follow this guide:
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
And update the Subscription API call with the Susbcription Scheduler API call