1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 09:32:48 -05:00

update stripe SDK

This commit is contained in:
Kyle Spearrin
2019-08-08 17:36:41 -04:00
parent 6d4e34b229
commit 48ec345702
9 changed files with 27 additions and 26 deletions

View File

@ -506,7 +506,7 @@ namespace Bit.Billing.Controllers
private bool UnpaidAutoChargeInvoiceForSubscriptionCycle(Invoice invoice)
{
return invoice.AmountDue > 0 && !invoice.Paid && invoice.Billing == Stripe.Billing.ChargeAutomatically &&
return invoice.AmountDue > 0 && !invoice.Paid && invoice.CollectionMethod == "charge_automatically" &&
invoice.BillingReason == "subscription_cycle" && invoice.SubscriptionId != null;
}
}