- Posts: 10
- Thank you received: 0
How to get WorldPay to redirect users back to site
- Jason Green
- Topic Author
- Offline
- New Member
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.
- Mr. Dam
- Offline
- Administrator
- Posts: 12822
- Thank you received: 1660
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.