We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 4d50e700 authored by Alexandros Moraitis's avatar Alexandros Moraitis Committed by GitHub

Merge pull request #867 from Adyen/develop

Release 6.6.4
parents 6aead8e5 9cf251f3
...@@ -23,14 +23,11 @@ ...@@ -23,14 +23,11 @@
namespace Adyen\Payment\Controller\Transparent; namespace Adyen\Payment\Controller\Transparent;
use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\Action;
use Magento\Framework\App\Action\HttpPostActionInterface; use Magento\Framework\App\Request\Http as Http;
use Magento\Framework\App\CsrfAwareActionInterface;
use Magento\Framework\App\Request\InvalidRequestException;
use Magento\Framework\App\RequestInterface;
use Magento\Framework\View\Result\LayoutFactory; use Magento\Framework\View\Result\LayoutFactory;
use Magento\Framework\App\Action\Context; use Magento\Framework\App\Action\Context;
class Redirect extends Action implements CsrfAwareActionInterface, HttpPostActionInterface class Redirect extends Action
{ {
/** /**
* @var \Adyen\Payment\Logger\AdyenLogger * @var \Adyen\Payment\Logger\AdyenLogger
...@@ -50,27 +47,18 @@ class Redirect extends Action implements CsrfAwareActionInterface, HttpPostActio ...@@ -50,27 +47,18 @@ class Redirect extends Action implements CsrfAwareActionInterface, HttpPostActio
public function __construct( public function __construct(
Context $context, Context $context,
\Adyen\Payment\Logger\AdyenLogger $adyenLogger, \Adyen\Payment\Logger\AdyenLogger $adyenLogger,
LayoutFactory $resultLayoutFactory) LayoutFactory $resultLayoutFactory
{ ) {
$this->adyenLogger = $adyenLogger; $this->adyenLogger = $adyenLogger;
$this->resultLayoutFactory = $resultLayoutFactory; $this->resultLayoutFactory = $resultLayoutFactory;
parent::__construct($context); parent::__construct($context);
} if (interface_exists(\Magento\Framework\App\CsrfAwareActionInterface::class)) {
$request = $this->getRequest();
/** if ($request instanceof Http && $request->isPost()) {
* @inheritdoc $request->setParam('isAjax', true);
*/ $request->getHeaders()->addHeaderLine('X_REQUESTED_WITH', 'XMLHttpRequest');
public function validateForCsrf(RequestInterface $request): ?bool }
{ }
return true;
}
/**
* @inheritdoc
*/
public function createCsrfValidationException(RequestInterface $request): ?InvalidRequestException
{
return null;
} }
/** /**
......
...@@ -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": "6.6.3", "version": "6.6.4",
"license": [ "license": [
"OSL-3.0", "OSL-3.0",
"AFL-3.0" "AFL-3.0"
......
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