#shubhamjha

1 messages · Page 1 of 1 (latest)

exotic foxBOT
bleak crater
#

i want to add my own expiry date on chekout session

#

for subscription

idle steeple
bleak crater
#

no i want my own expiry date of a subscription on stripe

#

next upcoming incoice is paid with my expiry date not 30 days i want to give my own date in it

idle steeple
#

Checkout Session creation is for signing up the subscription only, and the subscription will only be created if the payment is made.

next upcoming incoice is paid with my expiry date not 30 days i want to give my own date in it
Do you mean after the subscription is created, you want to place an expiry date for the next invoice?

bleak crater
#

yes

idle steeple
#

Then you configure to cancel the subscription if all retries fail

bleak crater
#

no broo in coding

idle steeple
#

If you're referring to Checkout Session expires_at, it refers to the expiry of Checkout Session link, not subscription

#

For example, customer won't be able to access the link after the expires_at timestamp

bleak crater
#

oh

#

yr i want to need the expiry date of a subscription

#

can i add my own subscription expiry date

idle steeple
bleak crater
#

no sapose i have subscribe some plan in privious days and that subscription is expired in 5 days , but i want to chnge my subscription but i want to use my privious expiry date '

#

how can i do it

idle steeple
#

When the subscription is expired in 5 days
What does this mean? Subscription created by Checkout Session doesn't have expiry by default. How did you set up the expiry?

bleak crater
#

can i cahnge the 30 days of expiry date of a plan to set my own no of days on buying new plan?

idle steeple
#

Let's step back a bit. When a customer subscribes with Checkout Session, the customer will be deducted automatically every cycle with the payment method saved during Checkout Session.

What do you mean buying new plan? Customer will be charged on his/her card every cycle

#

When/what scenario will this 30 days of expiry kick in?

bleak crater
#

Can I update the subscription end date of a subscription in stripe using node js

idle steeple
#

Yes, you can use subscription schedule API to schedule when the subscription will end. The steps will be:

  1. Create subscription schedule from existing subscription: https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#existing-subscription
  2. Update subscription schedule created in Step 1 to set the end_date: https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-phases-end_date

Learn how to use subscription schedules.