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 bc071ac6 authored by attilak's avatar attilak

Handle response from Checkout API redirect

parent c87b795e
...@@ -87,7 +87,6 @@ class Result extends \Magento\Framework\App\Action\Action ...@@ -87,7 +87,6 @@ class Result extends \Magento\Framework\App\Action\Action
$this->_orderHistoryFactory = $orderHistoryFactory; $this->_orderHistoryFactory = $orderHistoryFactory;
$this->_session = $session; $this->_session = $session;
$this->_adyenLogger = $adyenLogger; $this->_adyenLogger = $adyenLogger;
$this->storeManager = $storeManager;
parent::__construct($context); parent::__construct($context);
} }
...@@ -302,7 +301,6 @@ class Result extends \Magento\Framework\App\Action\Action ...@@ -302,7 +301,6 @@ class Result extends \Magento\Framework\App\Action\Action
protected function _authenticate($response) protected function _authenticate($response)
{ {
if (!empty($response['merchantSig'])) {
$merchantSigNotification = $response['merchantSig']; $merchantSigNotification = $response['merchantSig'];
// do it like this because $_GET is converting dot to underscore // do it like this because $_GET is converting dot to underscore
...@@ -327,11 +325,8 @@ class Result extends \Magento\Framework\App\Action\Action ...@@ -327,11 +325,8 @@ class Result extends \Magento\Framework\App\Action\Action
if (strcmp($merchantSig, $merchantSigNotification) === 0) { if (strcmp($merchantSig, $merchantSigNotification) === 0) {
return true; return true;
} }
return false;
} else{
// send the payload verification payment\details request to validate the response
} return false;
} }
......
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