mirror of
https://github.com/bitwarden/server
synced 2025-12-11 05:43:35 +00:00
add account credit
This commit is contained in:
@@ -437,7 +437,7 @@ namespace Bit.Core.Services
|
||||
|
||||
await customerService.UpdateAsync(customer.Id, new CustomerUpdateOptions
|
||||
{
|
||||
AccountBalance = -1 * previewInvoice.AmountDue
|
||||
AccountBalance = customer.AccountBalance - previewInvoice.AmountDue
|
||||
});
|
||||
addedCreditToStripeCustomer = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user