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
/**
* Get Notification for duplicate check
*
*
* @param $pspReference
* @param $eventCode
* @param $success
* @param $originalReference
* @param null $done
* @return array
*/
public function getNotification($pspReference, $eventCode, $success, $originalReference)
public function getNotification($pspReference, $eventCode, $success, $originalReference, $done = null)
{
$select = $this->getConnection()->select()
->from(['notification' => $this->getTable('adyen_notification')])
......@@ -51,6 +52,10 @@ class Notification extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
->where('notification.event_code=?', $eventCode)
->where('notification.success=?', $success);
if ($done) {
$select->where('notification.done=?', $done);
}
if ($originalReference) {
$select->where('notification.original_reference=?', $originalReference);
}
......
......@@ -2,7 +2,7 @@
"name": "adyen/module-payment",
"description": "Official Magento2 Plugin to connect to Payment Service Provider Adyen.",
"type": "magento2-module",
"version": "2.1.2",
"version": "2.1.3",
"license": [
"OSL-3.0",
"AFL-3.0"
......
......@@ -24,7 +24,7 @@
-->
<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>
<module name="Magento_Sales"/>
<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