#jsdesign-sw_api

1 messages · Page 1 of 1 (latest)

runic lilyBOT
#

👋 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/1387344194724564996

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

dark rover
#

This is my relevant code, using Java
//Is there a subscription schedule? If not, set it to cancel at the end of this period
SubscriptionSchedule schedule = subscription.getScheduleObject();
if (schedule == null) {
SubscriptionUpdateParams params = SubscriptionUpdateParams.builder().setCancelAtPeriodEnd(true).build();
stripeClient.updateSubscription(subscription, params, attrMap);
return;
}

//Cancel all subscription schedules and cancel basic subscriptions
SubscriptionScheduleUpdateParams params = SubscriptionScheduleUpdateParams.builder()
.setEndBehavior(SubscriptionScheduleUpdateParams.EndBehavior.CANCEL)
.addAllPhase(Collections.singletonList(StripeBuilder.createSchedulePhaseFromSubscription(subscription)))
.build();
stripeClient.updateSubscriptionSchedule(schedule, params, attrMap);

worthy haven
#

Looking

worthy haven
#

OK, this seems like a potential bug at our end. The livemode schedule seems to be in a weird state where it has 2 phases with identical state dates which shouldn't be possible at all. Suspect that it somehow impacting the update call you're trying to make

dark rover
#

Yes, there is no such issue in testing mode

worthy haven
#

Can you please write in to my team and we'll take this offline and flag with the Billing team working on this? I'll DM you a link where this can be escalated directly

runic lilyBOT
#

Hello @dark rover, we have sent you a direct message, please check it at https://discord.com/channels/@me/1374610349839355924

  • 🔗The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
dark rover
worthy haven
#

Yep, click that link

#

It'll open support.stripe.com and you can follow the steps in the chat window to get a case direct with my team