Commit 531089a4 authored by Rik ter Beek's avatar Rik ter Beek

added forgotten update on notification object and update version for new hotfix release

parent 039cb194
...@@ -36,14 +36,15 @@ class Notification extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb ...@@ -36,14 +36,15 @@ class Notification extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
/** /**
* Get Notification for duplicate check * Get Notification for duplicate check
* *
* @param $pspReference * @param $pspReference
* @param $eventCode * @param $eventCode
* @param $success * @param $success
* @param $originalReference * @param $originalReference
* @param null $done
* @return array * @return array
*/ */
public function getNotification($pspReference, $eventCode, $success, $originalReference) public function getNotification($pspReference, $eventCode, $success, $originalReference, $done = null)
{ {
$select = $this->getConnection()->select() $select = $this->getConnection()->select()
->from(['notification' => $this->getTable('adyen_notification')]) ->from(['notification' => $this->getTable('adyen_notification')])
...@@ -51,6 +52,10 @@ class Notification extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb ...@@ -51,6 +52,10 @@ class Notification extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
->where('notification.event_code=?', $eventCode) ->where('notification.event_code=?', $eventCode)
->where('notification.success=?', $success); ->where('notification.success=?', $success);
if ($done) {
$select->where('notification.done=?', $done);
}
if ($originalReference) { if ($originalReference) {
$select->where('notification.original_reference=?', $originalReference); $select->where('notification.original_reference=?', $originalReference);
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "adyen/module-payment", "name": "adyen/module-payment",
"description": "Official Magento2 Plugin to connect to Payment Service Provider Adyen.", "description": "Official Magento2 Plugin to connect to Payment Service Provider Adyen.",
"type": "magento2-module", "type": "magento2-module",
"version": "2.1.2", "version": "2.1.3",
"license": [ "license": [
"OSL-3.0", "OSL-3.0",
"AFL-3.0" "AFL-3.0"
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
--> -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Adyen_Payment" setup_version="2.1.2"> <module name="Adyen_Payment" setup_version="2.1.3">
<sequence> <sequence>
<module name="Magento_Sales"/> <module name="Magento_Sales"/>
<module name="Magento_Quote"/> <module name="Magento_Quote"/>
......
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