#jsdesign-sw_api

1 messages · Page 1 of 1 (latest)

austere mapleBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1387708252170748026

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

topaz wedge
#

I am currently unable to cancel this user's subscription upon expiration in the Stripe backend

hot flume
#

👋 happy to help

topaz wedge
#

hi

#

I asked once yesterday, but he didn't seem to understand what I meant

hot flume
#

he did understand what you meant

topaz wedge
#

I feel that this subscription is in its current state because I did a non cancellation operation once

hot flume
#

no you're dealing with a subscription schedule here

#

so it's not just about the subscription's current state but the state of the subscription schedule

#

I'm still looking into it

#

please give me some more time

topaz wedge
#

Yes, I achieved the action of 'not canceling the current subscription' by modifying the subscription schedule

hot flume
#

I think you should update the subscription with the API and remove the cancelAt

topaz wedge
hot flume
#

the subscription is already set to be canceled

#

at period end

topaz wedge
#

Why can't I find your log in the background search

topaz wedge
hot flume
hot flume
#

this is already done

#

if you want to stop the subscription from being canceled you need to send cancelAt: '' to the subscription update endpoint

topaz wedge
#

Because I can see that this user's subscription is still active and I can't see the log you posted above

austere mapleBOT
hot flume
topaz wedge
magic matrix
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

topaz wedge
#

@magic matrix Hello, this type of sending cannot cancel my current subscription

magic matrix
#

According to error message:

The subscription is managed by the subscription schedule sub_sched_1RdqV3FhJBXi2cUJRmCKgFMH, and updating any cancelation behavior directly is not allowed. Please update the schedule instead.
You need to cancel the schedule

topaz wedge
#

I feel like you still don't understand the problem I'm facing. I modified my subscription schedule to "cancel subscription upon expiration" or "not cancel subscription". I had no problem using this method in testing mode, but in production mode, there may be issues with modifying the subscription schedule to achieve the effect of canceling subscription upon expiration

topaz wedge
magic matrix
#

Can you share the Subscription Id in test mode that you hadn't issue with and the corresponding request Id to req_xWIykLCWk6rPMh

magic matrix
topaz wedge
# magic matrix I think my colleague already answered you on this request above

No, he asked me to do it this way https://dashboard.stripe.com/logs/req_nuzQELHysxGUBN
You can see the logs I have tried in test mode
https://dashboard.stripe.com/test/logs/req_xWIykLCWk6rPMh

#

If your intention is for me not to manage subscriptions through subscription schedules, then you need to first ask me how to unsubscribe from existing subscription schedules

#

Can you help me see how this user should set up expiration cancellation? Because the user will be charged in 7.3, but he doesn't want to renew, and he may apply for a refund because of this issue

magic matrix
topaz wedge
magic matrix
#

You are using Stripe Dashboard here

#

It seems that you want to update the first phase too

#

In your case, you just need to set the end behavior to cancel to your Subscription

#

I won't get any errors in test mode
There must be a different between your test mode integration and live mode...

topaz wedge
magic matrix
#

Yeah same, it seems like you are updating the price too

topaz wedge
#

They reported the same error

magic matrix
#

Let's focus on one Subscription at the same time if possible

#

Could you please share a Subscription (or schedule) Id, what is the current state and what you want to achieve ?

topaz wedge
magic matrix
magic matrix
#

In your backend request, can you update the schedule with only this request body:

{
  end_behavior: "cancel"
}
topaz wedge
#

I don't need to pass on the Phase, right?

magic matrix
#

Yeah as you don't want to update it

austere mapleBOT
left cave
#

@topaz wedge is this a different issue to the one I helped you with yesterday?

topaz wedge
#

I tried updating the schedule with only this request body in test mode
{
end_behavior: "cancel"
}It's possible
I will test this code in the production environment next week