#Madhavi - checkout
1 messages · Page 1 of 1 (latest)
Hi there!
So the Checkout Session button is showing "trial" but want it to show "subscribe" instead?
yes .. even if the trial period is not ended
is there any possibility
Sorry for the delay. Unfortunately I don't think that's possible.
The only way to change the Checkout button is this: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-submit_type
But it's doesn't work for subscriptions.
ok.. after the checkout session is complete, it is automatically creating a subscription, is there any possibility to update subscription start date using API
after the checkout session is complete, it is automatically creating a subscription,
That's correct
is there any possibility to update subscription start date using API
You can update the subscription, but since it already started you cannot change its start date.
But you could add a free trial to postpone the first payment.
if subscription is not started yet, can you please help with the api to update start date
If you want to create a subscription in the future, you should use Subscription Schedule: https://stripe.com/docs/billing/subscriptions/subscription-schedules
However this won't work with Checkout Session.
ok.. If I am creating a subscription from checkout session, is it possible to change the subscription start date
we are not using schedules
Like you said, the checkout session automatically starts a new subscriptions. So unfortunately it's not possible to change its start date.
The only option is to add a free trial to the subscription, or to use subscription schedule.
how to add a free trial to the subscription
When you create the Checkout Session you can use either:
subscription_data.trial_end or subscription_data.trial_period_days
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_end