[Stripe Plugin] Restoring Subscription throws a 400 error

When cancelling a subscription and trying to do authClient.subscription.restore, I get the following error:
[Better Auth]: Error restoring subscription 41 | * Specifically for errors returned from Stripe's REST API.
42 | */
43 | export class StripeError extends Error {
44 | constructor(raw = {}, type = null) {
45 | var _a;
46 | super(raw.message);
^
error: The subscription is managed by the subscription schedule `sub_sched_1RtmodQutS4uANHlSGXw9r6D`, and updating any cancelation behavior directly is not allowed. Please update the schedule instead.
[Better Auth]: Error restoring subscription 41 | * Specifically for errors returned from Stripe's REST API.
42 | */
43 | export class StripeError extends Error {
44 | constructor(raw = {}, type = null) {
45 | var _a;
46 | super(raw.message);
^
error: The subscription is managed by the subscription schedule `sub_sched_1RtmodQutS4uANHlSGXw9r6D`, and updating any cancelation behavior directly is not allowed. Please update the schedule instead.
I run stripe basil, as it is the version matching the stripe sdk 18.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?