AfRApay.FTM: Invert credits and debits
This commit is contained in:
parent
8a87c258b8
commit
715bb94432
|
@ -148,7 +148,7 @@ static async void HandleTap(IIsoReader reader, HttpClient httpClient, TerminalSt
|
|||
switch (state) {
|
||||
case TerminalState.Debit:
|
||||
case TerminalState.Credit:
|
||||
var finalAmount = Math.Abs(amount) * (state == TerminalState.Debit ? 1 : -1);
|
||||
var finalAmount = Math.Abs(amount) * (state == TerminalState.Debit ? -1 : 1);
|
||||
var idempotencyKey = new byte[18];
|
||||
Random.Shared.NextBytes(idempotencyKey);
|
||||
var ik = Convert.ToHexString(idempotencyKey);
|
||||
|
|
Loading…
Reference in a new issue