Worldpay resultY.html and resultC.html files


I am using Worldpay as our Payment Provider an need a bit of advice on how to configure the services.

What content should be used in these Worldpay files (resultY.html and resultC.html), and how the file payments/worldpay.php is used?

How does customer get redirected back to our shop from Worldpay?