From 455123c0c9faf723374caedd912586a9915686d5 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sun, 14 Oct 2018 22:10:34 -0400 Subject: [PATCH] undo CancelAtPeriodEnd on reinstate --- src/Core/Services/Implementations/StripePaymentService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Services/Implementations/StripePaymentService.cs b/src/Core/Services/Implementations/StripePaymentService.cs index d95153c311..6b37a7bc39 100644 --- a/src/Core/Services/Implementations/StripePaymentService.cs +++ b/src/Core/Services/Implementations/StripePaymentService.cs @@ -245,8 +245,8 @@ namespace Bit.Core.Services throw new GatewayException("Subscription is not marked for cancellation."); } - // Just touch the subscription. - var updatedSub = await subscriptionService.UpdateAsync(sub.Id, new StripeSubscriptionUpdateOptions { }); + var updatedSub = await subscriptionService.UpdateAsync(sub.Id, + new StripeSubscriptionUpdateOptions { CancelAtPeriodEnd = false }); if(updatedSub.CanceledAt.HasValue) { throw new GatewayException("Unable to reinstate subscription.");