Commit f2e0d94f authored by attilak's avatar attilak

Handle both old HPP and the new checkout api flow

Response will be handled in PW-705
parent 9f43b97c
......@@ -302,6 +302,7 @@ class Result extends \Magento\Framework\App\Action\Action
protected function _authenticate($response)
{
if (!empty($response['merchantSig'])) {
$merchantSigNotification = $response['merchantSig'];
// do it like this because $_GET is converting dot to underscore
......@@ -326,8 +327,11 @@ class Result extends \Magento\Framework\App\Action\Action
if (strcmp($merchantSig, $merchantSigNotification) === 0) {
return true;
}
return false;
} else{
// send the payload verification payment\details request to validate the response
}
}
......
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