Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion Controller/Index/Notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

/**
Expand Down Expand Up @@ -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;
}
}