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 8aad0088 authored by Rik ter Beek's avatar Rik ter Beek

Fixes #112 fix trim

parent bc5001c3
...@@ -238,7 +238,7 @@ class Cron ...@@ -238,7 +238,7 @@ class Cron
* If the event is a RECURRING_CONTRACT wait an extra 5 minutes * If the event is a RECURRING_CONTRACT wait an extra 5 minutes
* before processing so we are sure the RECURRING_CONTRACT * before processing so we are sure the RECURRING_CONTRACT
*/ */
if (trim($notification->getEventCode() == Notification::RECURRING_CONTRACT) && if (trim($notification->getEventCode()) == Notification::RECURRING_CONTRACT &&
strtotime($notification->getCreatedAt()) >= strtotime('-5 minutes', time())) { strtotime($notification->getCreatedAt()) >= strtotime('-5 minutes', time())) {
$this->_adyenLogger->addAdyenNotificationCronjob( $this->_adyenLogger->addAdyenNotificationCronjob(
"This is a recurring_contract notification wait an extra 5 minutes "This is a recurring_contract notification wait an extra 5 minutes
......
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