mirror of
https://github.com/bitwarden/server.git
synced 2025-02-12 01:11:22 +01:00
Round PayPal transaction amount to two decimal points (#5318)
This commit is contained in:
parent
31e95d529f
commit
20fb45b05c
@ -296,7 +296,7 @@ public class StripeEventUtilityService : IStripeEventUtilityService
|
||||
btObjIdField = "provider_id";
|
||||
btObjId = providerId.Value;
|
||||
}
|
||||
var btInvoiceAmount = invoice.AmountDue / 100M;
|
||||
var btInvoiceAmount = Math.Round(invoice.AmountDue / 100M, 2);
|
||||
|
||||
var existingTransactions = organizationId.HasValue
|
||||
? await _transactionRepository.GetManyByOrganizationIdAsync(organizationId.Value)
|
||||
|
Loading…
Reference in New Issue
Block a user