mirror of
https://github.com/bitwarden/server
synced 2025-12-13 06:43:45 +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
|
await customerService.UpdateAsync(customer.Id, new CustomerUpdateOptions
|
||||||
{
|
{
|
||||||
AccountBalance = -1 * previewInvoice.AmountDue
|
AccountBalance = customer.AccountBalance - previewInvoice.AmountDue
|
||||||
});
|
});
|
||||||
addedCreditToStripeCustomer = true;
|
addedCreditToStripeCustomer = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user