We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

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 ...@@ -416,8 +416,13 @@ class Cron
$this->_processNotification(); $this->_processNotification();
} }
$this->_order->save(); try {
// set done to true // set done to true
$this->_order->save();
} catch (\Exception $e) {
$this->_adyenLogger->addAdyenNotificationCronjob($e->getMessage());
}
$this->_updateNotification($notification, false, true); $this->_updateNotification($notification, false, true);
$this->_adyenLogger->addAdyenNotificationCronjob( $this->_adyenLogger->addAdyenNotificationCronjob(
sprintf("Notification %s is processed", $notification->getEntityId()) 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