From 99d2c7d948a4596a08e975bd2f87f02f10ff9316 Mon Sep 17 00:00:00 2001 From: valerocompsa <95219955+valerocompsa@users.noreply.github.com> Date: Tue, 29 Mar 2022 16:15:25 +0200 Subject: [PATCH] Update Notify.php Fix order keeps on Payment Review. --- Controller/Index/Notify.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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; + } }