#shubhamjha

1 messages ยท Page 1 of 1 (latest)

coral creekBOT
formal current
#

Delete the schedule or the subscriptions themselves?

coral creekBOT
zealous nexus
#

i am useing relse is it work for them?

#

?

formal current
#

The release behavior tells the schedule to detach itself from the subscription when the last phase is happens

#

Can you tell me more about what you are trying to do here?

zealous nexus
#

i just want to delete the shedule subscription

#

and create new for new subscriptions

silver abyss
#

๐Ÿ‘‹ stepping in

#

Are these schedules already active?

#

Or they are scheduled to start in the future?

zealous nexus
#

also DELETE THIS and chnge other subscription for future

silver abyss
#

And then you can recreate

#

If that is what you want to do

zealous nexus
#

ok so release is not correct ?

#

am i right?

silver abyss
zealous nexus
#

my code is await stripe.subscriptionSchedules.release(id)

#

this

#

hey

silver abyss
#

Ah sorry

#

You want the underlying Subscription to still exist?

#

Or cancel both?

zealous nexus
#

is this code is works ? await stripe.subscriptionSchedules.del(scheduleId);

silver abyss
#

If the Sub hasn't started yet then canceling and releasing will effectively do the same thing

#

Would recommend testing out whatever you plan on doing in test mode first to ensure it behaves as expected

zealous nexus
#

I just want to delete it completely in the schedule itself before the scheduled date.

#

please ?

silver abyss
#

Yes then await stripe.subscriptionSchedules.del(scheduleId); will do the trick

#

But like I said, you should test in test mode first

#

To make sure it behaves as you expect/want

zealous nexus
#

ok i also test it in test clock option?

silver abyss
#

Yep that would be a good way to do it