We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit c3db48dd authored by Rik ter Beek's avatar Rik ter Beek Committed by GitHub

Merge pull request #195 from florisgoumans/develop

Fix duplicate notifications
parents 5c5b4c20 0a9c2398
...@@ -49,8 +49,12 @@ class Notification extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb ...@@ -49,8 +49,12 @@ class Notification extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
->from(['notification' => $this->getTable('adyen_notification')]) ->from(['notification' => $this->getTable('adyen_notification')])
->where('notification.pspreference=?', $pspReference) ->where('notification.pspreference=?', $pspReference)
->where('notification.event_code=?', $eventCode) ->where('notification.event_code=?', $eventCode)
->where('notification.success=?', $success) ->where('notification.success=?', $success);
->where('notification.original_reference=?', $originalReference);
if ($originalReference) {
$select->where('notification.original_reference=?', $originalReference);
}
return $this->getConnection()->fetchAll($select); return $this->getConnection()->fetchAll($select);
} }
} }
\ No newline at end of file
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