usability fixes

This commit is contained in:
2026-06-01 22:55:05 +02:00
parent 461dc7e7e4
commit c87f1e5e23
3 changed files with 4 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ public class ZesaConfirmationHotProcessor implements TransactionProcessorInterfa
transaction.setCreditAmount(transactionService.calculateCreditAmount(transaction));
if (!hotRechargeBalanceService.checkBalance(token, transaction.getAmount(), accId)) {
if (!hotRechargeBalanceService.checkBalance(token, transaction.getCreditAmount(), accId)) {
transaction.setStatus(Status.FAILED);
transaction.setResponseCode("92");
transaction.setErrorMessage("There's a technical issue on our end. Please try again later.");

View File

@@ -38,7 +38,7 @@ public class GatewayPaymentHandler implements HandlerInterface {
}
// if we've done this before then return
if(transaction.getPaymentStatus().equals(Status.SUCCESS))
if(Status.SUCCESS.equals(transaction.getPaymentStatus()))
return transaction;
transactionService.save(transaction);

View File

@@ -36,10 +36,10 @@ public class IntegrationHandler implements HandlerInterface {
transaction.setType(RequestType.INTEGRATION);
// if we've done this before then return
if(transaction.getIntegrationStatus().equals(Status.SUCCESS))
if(Status.SUCCESS.equals(transaction.getIntegrationStatus()))
return transaction;
if(!transaction.getPollingStatus().equals(Status.SUCCESS))
if(!Status.SUCCESS.equals(transaction.getPollingStatus()))
throw new ApiException("Transaction failed: Polling is not yet complete" );
// prevent race condition