updating currency conversion logic
This commit is contained in:
@@ -69,7 +69,11 @@ public class ZesaConfirmationHotProcessor implements TransactionProcessorInterfa
|
|||||||
transaction.setCreditCurrency(CurrencyType.USD);
|
transaction.setCreditCurrency(CurrencyType.USD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(transaction.getDebitCurrency().equals(CurrencyType.USD) && transaction.getCreditCurrency().equals(CurrencyType.ZWG)) {
|
||||||
transaction.setCreditAmount(transactionService.calculateCreditAmount(transaction));
|
transaction.setCreditAmount(transactionService.calculateCreditAmount(transaction));
|
||||||
|
}else {
|
||||||
|
transaction.setCreditAmount(transaction.getAmount());
|
||||||
|
}
|
||||||
|
|
||||||
// token should've been updated by checkCustomer
|
// token should've been updated by checkCustomer
|
||||||
if (!hotRechargeBalanceService.checkBalance(token, transaction.getCreditAmount(), accId)) {
|
if (!hotRechargeBalanceService.checkBalance(token, transaction.getCreditAmount(), accId)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user