mirror of
https://github.com/bitwarden/server.git
synced 2025-02-23 03:01:23 +01:00
resolve the issue with changes of payment method (#3976)
Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
This commit is contained in:
parent
0a43d8335d
commit
736a6f19a5
@ -844,10 +844,13 @@ public class StripePaymentService : IPaymentService
|
||||
if (invoice.AmountDue > 0 && updatedItemOptions.Any(i => i.Quantity > 0))
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!isPm5864DollarThresholdEnabled && !invoiceNow)
|
||||
{
|
||||
if (chargeNow)
|
||||
{
|
||||
paymentIntentClientSecret = await PayInvoiceAfterSubscriptionChangeAsync(subscriber, invoice);
|
||||
paymentIntentClientSecret =
|
||||
await PayInvoiceAfterSubscriptionChangeAsync(subscriber, invoice);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -857,6 +860,7 @@ public class StripePaymentService : IPaymentService
|
||||
paymentIntentClientSecret = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
// Need to revert the subscription
|
||||
|
Loading…
Reference in New Issue
Block a user