improving exception handling

This commit is contained in:
2025-10-21 17:22:11 +02:00
parent f8df4f7303
commit 1cee882fab

View File

@@ -151,8 +151,12 @@ public class MPGSWebPaymentProcessor implements TransactionProcessorInterface {
transaction.setResponseCode("00");
transaction.setTargetUrl((String) body.get("targetUrl"));
try {
LinkedHashMap transactionData = (LinkedHashMap) body.get("transaction");
transaction.setDebitRef((String) transactionData.get("sdkActionId"));
transaction.setDebitRef((String) transactionData.get("creditReference"));
} catch (Exception e) {
logger.info("Notification not yet posted at the bank");
}
transactionService.save(transaction);