diff --git a/Controller/Index/Notify.php b/Controller/Index/Notify.php index 7a2290d..84cc494 100755 --- a/Controller/Index/Notify.php +++ b/Controller/Index/Notify.php @@ -2,7 +2,10 @@ namespace Codeko\Redsys\Controller\Index; -class Notify extends \Codeko\Redsys\Controller\Index +use Magento\Framework\App\Request\InvalidRequestException; +use Magento\Framework\App\RequestInterface; + +class Notify extends \Codeko\Redsys\Controller\Index implements \Magento\Framework\App\CsrfAwareActionInterface { /** @@ -224,4 +227,15 @@ protected function changeStatusOrder($order, $status, $state, $id_log = 0, $comm } $order->save(); } + + public function createCsrfValidationException( + RequestInterface $request + ): ?InvalidRequestException { + return null; + } + + public function validateForCsrf(RequestInterface $request): ?bool + { + return true; + } }