Commit 03f410c9 authored by Rik ter Beek's avatar Rik ter Beek

add try catch on order saving to keep notifications out of in progress state

parent 8159aba3
......@@ -416,8 +416,13 @@ class Cron
$this->_processNotification();
}
$this->_order->save();
// set done to true
try {
// set done to true
$this->_order->save();
} catch (\Exception $e) {
$this->_adyenLogger->addAdyenNotificationCronjob($e->getMessage());
}
$this->_updateNotification($notification, false, true);
$this->_adyenLogger->addAdyenNotificationCronjob(
sprintf("Notification %s is processed", $notification->getEntityId())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment