minor adjustments
This commit is contained in:
@@ -44,7 +44,7 @@ public class PollStatusHandler implements HandlerInterface {
|
||||
|
||||
TransactionProcessorInterface transactionProcessorInterface =
|
||||
(TransactionProcessorInterface) paymentProcessorFactory.getPaymentProcessor(label);
|
||||
try {
|
||||
|
||||
// find out if the gateway tran was successful
|
||||
transactionProcessorInterface.poll(transaction);
|
||||
|
||||
@@ -61,12 +61,6 @@ public class PollStatusHandler implements HandlerInterface {
|
||||
transaction.setPaymentStatus(transaction.getStatus());
|
||||
transaction.setErrorMessage(null);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
transaction.setStatus(Status.FAILED);
|
||||
transaction.setResponseCode("01");
|
||||
transaction.setErrorMessage(e.getMessage());
|
||||
}
|
||||
|
||||
transactionService.save(transaction);
|
||||
return transaction;
|
||||
|
||||
Reference in New Issue
Block a user