I'm trying to get the PayNL omnipay adapter working, but there seems to be an issue. After spending some time in teh code, I bumped into this piece in AbstractResponse:
/**
* Validate that the current Response is a valid redirect.
*
* @return void
*/
protected function validateRedirect()
{
if (!$this instanceof RedirectResponseInterface || !$this->isRedirect()) {
throw new RuntimeException('This response does not support redirection.');
}
if (empty($this->getRedirectUrl())) {
throw new RuntimeException('The given redirectUrl cannot be empty.');
}
if (!in_array($this->getRedirectMethod(), ['GET', 'POST'])) {
throw new RuntimeException('Invalid redirect method "'.$this->getRedirectMethod().'".');
}
}
Surely this line is wrong? if (!$this instanceof RedirectResponseInterface || !$this->isRedirect()) { and should be if (!$this instanceof RedirectResponseInterface && !$this->isRedirect()) { ?
Error I keep getting:
This response does not support redirection.
Hi
I'm trying to get the PayNL omnipay adapter working, but there seems to be an issue. After spending some time in teh code, I bumped into this piece in AbstractResponse:
Surely this line is wrong?
if (!$this instanceof RedirectResponseInterface || !$this->isRedirect()) {
and should beif (!$this instanceof RedirectResponseInterface && !$this->isRedirect()) {
?Error I keep getting: This response does not support redirection.