Welcome Guest, Not a member yet? Register   Sign In
External redirects
#1

(This post was last modified: 06-29-2023, 11:22 AM by sjender.)

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());
Reply
#2

Please add [SOLVED] to your post title on the end.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB