Hi,
I would like to have an external redirect to my payment provider.
So I tried using:
PHP Code:
$this->response->setHeader('Location', $payment->getCheckoutUrl());
This doesn't work. Just a blank page is given. No error message.
I am in developer mode, so I would expect some kind of error, or a succesfull redirect.
Als a simple PHP header('Location: URL') has the same result.
I have checked the checkout URL and it's fine.
SOLVED:
return redirect()->to($molliePayment->getCheckoutUrl());