diff --git a/Config/module.xml b/Config/module.xml index 32b2450..84c11f7 100755 --- a/Config/module.xml +++ b/Config/module.xml @@ -17,7 +17,7 @@ en_US fr_FR - 2.1.2 + 2.1.3 Vincent Lopes-Vicente diff --git a/EventListener/NotificationListener.php b/EventListener/NotificationListener.php index 3512af8..576658b 100755 --- a/EventListener/NotificationListener.php +++ b/EventListener/NotificationListener.php @@ -65,6 +65,7 @@ public function handlePaymentNotification(PaymentNotificationEvent $event) } $order = OrderQuery::create() + ->filterByPaymentModuleId(PayPlugModule::getModuleId()) ->filterByTransactionRef($transactionRef) ->findOne(); diff --git a/PayPlugModule.php b/PayPlugModule.php index 692c2e7..6b95a11 100755 --- a/PayPlugModule.php +++ b/PayPlugModule.php @@ -18,6 +18,7 @@ use Propel\Runtime\Connection\ConnectionInterface; use Symfony\Component\DependencyInjection\Loader\Configurator\ServicesConfigurator; use Symfony\Component\Finder\Finder; +use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\RedirectResponse; use Thelia\Core\HttpFoundation\JsonResponse; use Thelia\Core\Template\TemplateDefinition;