mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
parent
9d7e1ccc41
commit
02d2abd172
@ -800,7 +800,8 @@ public class StripePaymentService : IPaymentService
|
||||
SubscriptionBillingCycleAnchor = SubscriptionBillingCycleAnchor.Now
|
||||
});
|
||||
|
||||
immediatelyInvoice = upcomingInvoiceWithChanges.AmountRemaining >= 50000;
|
||||
var isAnnualPlan = sub?.Items?.Data.FirstOrDefault()?.Plan?.Interval == "year";
|
||||
immediatelyInvoice = isAnnualPlan && upcomingInvoiceWithChanges.AmountRemaining >= 50000;
|
||||
|
||||
subUpdateOptions.BillingCycleAnchor = immediatelyInvoice
|
||||
? SubscriptionBillingCycleAnchor.Now
|
||||
|
Loading…
Reference in New Issue
Block a user