#kanonhian-subscription-cancel

1 messages · Page 1 of 1 (latest)

fallow sun
#

Hello! What do you mean by a 'user-defined date'?

wintry urchin
#

hi

#

I mean current_period_ends is, for exmple 2022-31-12

#

but user wants to cancel subscription at 2022-01-12

#

this is manager user in paltform, not customer

fallow sun
#

Are you just looking for cancel_at on the Subscription? When you update a Subscription you can set cancel_at to any timestamp in the future to have the Subscription automatically cancel at that timestamp

wintry urchin
#

already tried

#

only scheduler can do this

#

the subscription was previously created

fallow sun
#

Is there a reason you HAVE to use schedules? You should be able to do this with just the Subscription, unless you have a specific use case that requires you to use schedules

#

Like what did you try previously that didn't work?

wintry urchin
#

third option basically

wintry urchin
fallow sun
#

Again, you should be able to do that with a simple subscription - there's no reason you have to use schedules unless you need to

#

Have you tried this out in test mode yet?

wintry urchin
#

yes

fallow sun
#

Can you share a request ID so I can take a look?

wintry urchin
#

yes

#

this is what happens when I try to do so

#

Stripe\Error\InvalidRequest : The subscription is managed by the subscription schedule sub_sched_1LmMzrGGCGfoPLShY8ASHBCf, and updating any cancelation behavior directly is not allowed. Please update the schedule instead.

#

oh maybe since I attached an scheduler it doesn't allow me

fallow sun
#

Yeah - if you don't need the Schedule then you don't need to add it and then you can update the subscription directly

wintry urchin
#

removing scheduler did the trick

#

thanks bro

#

baad schedulers