How to get WorldPay to redirect users back to site

  • Jason Green
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago #48090 by Jason Green
How to create customized WorldPay result files to handle shopper re-direction:

First create two new articles in joomla. One for a successful transaction, and one for a failed transaction. These will do the job of Joom Donation's customized messages, which don't have URLs associated with them. WorldPay needs a URL, so creating these articles gives us real URLs to provide WorldPay. Note the URLS, you'll insert them into the code for the redirects.

You will need to create two html files (one named resultY.html and one named resultC.html - N.B. the naming of these files is very important - the re-direction will not work if the name of the file is anything other than resultY.html or resultC.html). Each of these HTML files should include a meta refresh tag containing the URL of the page where you want the shopper to be re-directed to.

Examples of the resultY.html and resultC.html files can be found below:

resultY.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<meta http-equiv="refresh" content="5;url=http://mysite.com/Success_article_index.php_etc." />
</HEAD>
<WPDISPLAY FILE=header.html>
<BODY>
<p><img src=" mysite.com/images/a_graphic_like_your_st...in_the_images_folder " border="0" alt="" />


<br/>
<h2>Please wait a moment while we bring you back to MySite.com...</h2>
<p>If MySite.com does not automatically load, please <a href=" mysite.com/Success_article_index.php_etc .">click here.


</BODY>
</HTML>


resultC.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<meta http-equiv="refresh" content="5;url=http://mysite.com/Failed_article_index.php_etc." />
</HEAD>
<WPDISPLAY FILE=header.html>
<BODY>
<p><img src=" mysite.com/images/a_graphic_like_your_st...in_the_images_folder " border="0" alt="" />


<br/>
<h2>Please wait a moment while we bring you back to MySite.com...</h2>
<p>If MySite.com does not automatically load, please <a href=" mysite.com/Failed_article_index.php_etc .">click here.


</BODY>
</HTML>


Please update the URLs in the above HTML, as required.

Once you have created the resultY.html and resultC.html files, you will need to upload them to your 'Edit Payment Pages' area. To do this, please follow the steps, below:

- Log into the WorldPay Merchant Administration Interface ( secure.worldpay.com/sso/public/auth/logi...tifier=merchantadmin )
- Click the 'Installations' menu option, and then click the 'edit payment pages' button on the Installation Administration page
- Select/Enter the relevant Installation ID on the Payment Page Editor (e.g. 123456) and then click the 'Edit Payment Pages' button
- Click the 'File Management' link
- Then upload the two files in the 'File Management' area
- Click the 'Copy to Production' link, once you are happy for the files to be copied over to the Production environment

Please Log in or Create an account to join the conversation.

More
6 years 2 weeks ago #110688 by Mr. Dam
Thank you for your solution, Jason

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt