I managed to implement a redirect by using a meta tag. Change {{ $url }} to your desired URL.
<!DOCTYPE html> <html> <head> <title>Redirect</title> <meta http-equiv="refresh" content="0; URL={{ $url }}"> </head> <body> <p>If your browser does not automatically redirect you, please use the link below.</p> <a href="{{ $url }}">Click here to continue.</a> </body> </html>
In the WorldPay settings, you'll need set the "Payment Response URL" to this page. After a successful payment, WorldPay will POST data to this page.
With PHP you could verify the payment, mark the transaction as complete, then redirect.
This tool can help you debug exactly what POST data WorldPay send to you: http://webhookinbox.com/
Note that the meta tag refresh will only work when the page is online, not when using localhost.