<?php include '../config.php' ?>
<!DOCTYPE html>
<html lang="en">
	<meta charset="utf-8" />
	<title>IPN Sample</title>

	<?php include DOCROOT.'header.php' ?>
	<script src="script.js"></script>
		#log table
			width: 100%;
			margin-bottom: 1em;
		#log td:first-child,
		#log th:first-child
			width: 25%;
		#log thead span
			vertical-align: middle;
			float: right;

	<h1>IPN Sample</h1>
			<li>Go to the PayPal <a href="https://developer.paypal.com/developer/ipnSimulator/">Instant Payment Notification (IPN) simulator</a>.</li>
			<li>As the <var>IPN handler URL</var> put in <var>http://samples.geekality.net/ipn/listener.php</var>.</li>
			<li>Choose a <var>Transaction type</var>.</li>
			<li>Put in some interesting values (or just leave the defaults).</li>
			<li>Hit the Send IPN button.</li>
	<p>When you've gone through the procedure above, you should find it in the log below (newest on top). Remember to refresh the log to see the latest entries =)</p>

	<hr />

	<h2>Log <button id="refresh" title="Reload log"><img src="<?php echo WEBROOT ?>icons/arrow_rotate_clockwise.png" /></button></h2>

	<div id="log"></div>

	<?php $article = 1210; include DOCROOT.'footer.php'; ?>