hipay / hipay-fullservice-sdk-magento2

Official repository of the HiPay Fullservice extension for Magento v2.
https://developer.hipay.com/doc/hipay-fullservice-sdk-magento2/
Apache License 2.0
10 stars 16 forks source link

Request validation failed for action #121

Closed ramzy11 closed 4 years ago

ramzy11 commented 5 years ago

Hi,

We have an error on notification url after upgrading to Magento 2.3.2 version :

Nginx log : "POST /hipay/notify/index HTTP/1.1" 302 30 "-" "Allopass" "-"

Error log : Request validation failed for action "HiPay\FullserviceMagento\Controller\Notify\Index\Interceptor"

Thanks.

ramzy11 commented 5 years ago

Hi,

The solution :

/**
 * @inheritDoc
 */
public function createCsrfValidationException(
    RequestInterface $request
): ?InvalidRequestException {
    return null;
}

/**
 * @inheritDoc
 */
public function validateForCsrf(RequestInterface $request): ?bool
{
    return true;
}
legithubdeaymeric commented 4 years ago

Hi,

Which version of our module do you use?

Normally, it's manage by a fix: https://github.com/hipay/hipay-fullservice-sdk-magento2/commit/1eb0951938f2cc0043c4714c548c3c63b84e83dc#diff-085299f578f3ccc7f9c17d0d1295166bR55

ramzy11 commented 4 years ago

Hi,

I'm using the 1.6.1 version.

Thank you in advance

etiennelandais commented 4 years ago

Hi,

This issue has been fixed in the latest release

https://github.com/hipay/hipay-fullservice-sdk-magento2/releases/tag/1.7.2

Regards