<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Harry Bailey &#187; WorldPay</title>
	<atom:link href="http://harrybailey.com/category/the-web/worldpay/feed/" rel="self" type="application/rss+xml" />
	<link>http://harrybailey.com</link>
	<description>just a little bit geeky</description>
	<lastBuildDate>Tue, 24 Aug 2010 12:15:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WorldPay Response URL and Shopper Return for Thanks</title>
		<link>http://harrybailey.com/2010/02/worldpay-response-url-shopper-return/</link>
		<comments>http://harrybailey.com/2010/02/worldpay-response-url-shopper-return/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 23:39:03 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[The Web]]></category>
		<category><![CDATA[WorldPay]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=401</guid>
		<description><![CDATA[It took a while to get my head around it, so here it is incase I need it again.
Integrating with WorldPay is not the simplest of tasks. The documentation is poor at best.
I was integrating by using a form on my site, which posts the order total and an order id etc to WorldPay. WorldPay [...]]]></description>
			<content:encoded><![CDATA[<p>It took a while to get my head around it, so here it is incase I need it again.</p>
<p>Integrating with WorldPay is not the simplest of tasks. The documentation is poor at best.</p>
<p>I was integrating by using a form on my site, which posts the order total and an order id etc to WorldPay. WorldPay then deal with taking the money from the user. What I couldn&#8217;t understand was how to get the user back to my site for thanks after they had paid.</p>
<p>Turns out it&#8217;s quite simple.</p>
<p><span id="more-401"></span></p>
<p>In the WorldPay control panel, enable Payment Response and add a url to which Worldpay will ping information about the transaction (the user is not sent here, nore are they ever aware this url exists). Also Enable Shopper Response.</p>
<p>When WorldPay pings your Payment Response file with the details of the transaction, if you have enabled Shopper Response then you can send back some html which WorldPay shows to the user. I had a better solution for the thanks page on my own site and so simply sent a meta redirect tag back. Nothing more, nothing less.</p>
<p>So the user is redirected to a url of my choice, and because I send that url to them after the transaction completes, I can choose where to send the user at that moment using the data WorldPay have send me.</p>
<p>&lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;0;url=http://www.example.com/thanks.html&#8221; /&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2010/02/worldpay-response-url-shopper-return/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
