Location: PHPKode > scripts > Estonian e-payments solution > example-return.php

	// Estonian e-payments system 1.1 beta
	// Kristo Vaher 2011 http://www.waher.net
	// Licensed under LGPL http://www.gnu.org/licenses/lgpl-3.0.txt
	// Published http://waher.net/archives/852
	//This is an example return page. It uses $_POST to validate if data is being returned, but custom array can be also used
	//Please note that this e-payment system assumes that website is modern and characters are encoded in UTF-8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="et">
		<title>Example Return Page</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
				require('config.epay.php'); //while configuration file is not needed for initial submit page, it is needed for return page
				$banklink=new Payment($config);
					//The data returned from e-payment system is different for each profile
					//Only constants across all profiles is 'result' (either 'success' or 'failed') and 'order-code'
					echo '<pre>';
					echo '</pre>';
				} else {
					//This means that internal security hash has failed and data has been edited
					//It is recommended to log these attemtps, since it can be sign of malicious behavior
					echo '<br/>hash failed!';
Return current item: Estonian e-payments solution