diff --git a/src/main/java/zw/qantra/tm/domain/services/processors/confirmations/hotrecharge/ZesaConfirmationHotProcessor.java b/src/main/java/zw/qantra/tm/domain/services/processors/confirmations/hotrecharge/ZesaConfirmationHotProcessor.java index 2f27303..1d665cd 100644 --- a/src/main/java/zw/qantra/tm/domain/services/processors/confirmations/hotrecharge/ZesaConfirmationHotProcessor.java +++ b/src/main/java/zw/qantra/tm/domain/services/processors/confirmations/hotrecharge/ZesaConfirmationHotProcessor.java @@ -69,7 +69,11 @@ public class ZesaConfirmationHotProcessor implements TransactionProcessorInterfa transaction.setCreditCurrency(CurrencyType.USD); } - transaction.setCreditAmount(transactionService.calculateCreditAmount(transaction)); + 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)) {