#return redirect()->away() not working | 405

5 messages · Page 1 of 1 (latest)

nova swift
#

You're making an ajax request, that won't redirect the browser. So you'd have to change how to make your request

daring tree
#

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)

nova swift
#

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

daring tree
#

so i think down there the return redirect is the code i want, maybe haha