#return redirect()->away() not working | 405
5 messages · Page 1 of 1 (latest)
mmh.. its for an purchase controller with some other payment methods, i am re writing the paypal thing because the package is deprecated and we don't wanna use a third party package anymore. is there no way to open an new tab or something.
currently its running over XHR
XHR.open("POST", "/payment", true); XHR.send(FD);
(fd = formData)
Then you'd probably want to send a JSON response back containing the URL and then use that to navigate the browser, if that's the goal
This is the old code:
https://jgimg.de/9C5e13W.png
https://jgimg.de/qcaKF0Z.png
so i think down there the return redirect is the code i want, maybe haha