From 1be6e2008b6576786fbecf608e1b1f1135359955 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 3 Sep 2019 16:49:25 -0400 Subject: [PATCH] qty is only 1 if re-creating after proration --- src/Core/Services/Implementations/StripePaymentService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Services/Implementations/StripePaymentService.cs b/src/Core/Services/Implementations/StripePaymentService.cs index d54be4052a..7304a0f600 100644 --- a/src/Core/Services/Implementations/StripePaymentService.cs +++ b/src/Core/Services/Implementations/StripePaymentService.cs @@ -931,7 +931,7 @@ namespace Bit.Core.Services SubscriptionId = item.SubscriptionId, Discountable = item.Discountable, Metadata = item.Metadata, - Quantity = 1, + Quantity = item.Proration ? 1 : item.Quantity, UnitAmount = item.UnitAmount }; await invoiceItemService.CreateAsync(i);