updating currency conversion logic

This commit is contained in:
2026-07-01 15:28:02 +02:00
parent 443e8fd21b
commit a2c04e4139

View File

@@ -69,7 +69,11 @@ public class ZesaConfirmationHotProcessor implements TransactionProcessorInterfa
transaction.setCreditCurrency(CurrencyType.USD);
}
if(transaction.getDebitCurrency().equals(CurrencyType.USD) && transaction.getCreditCurrency().equals(CurrencyType.ZWG)) {
transaction.setCreditAmount(transactionService.calculateCreditAmount(transaction));
}else {
transaction.setCreditAmount(transaction.getAmount());
}
// token should've been updated by checkCustomer
if (!hotRechargeBalanceService.checkBalance(token, transaction.getCreditAmount(), accId)) {