/* Pay and Shop Limited (Realex Payments) - Licence Agreement. © Copyright and zero Warranty Notice. Merchants and their internet, call centre, and wireless application developers (either in-house or externally appointed partners and commercial organisations) may access Realex Payments technical references, application programming interfaces (APIs) and other sample code and software ("Programs") either free of charge from www.realexpayments.com or by emailing info@realexpayments.com. Realex Payments provides the programs "as is" without any warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the programs is with the merchant and/or the application development company involved. Should the programs prove defective, the merchant and/or the application development company assumes the cost of all necessary servicing, repair or correction. Copyright remains with Realex Payments, and as such any copyright notices in the code are not to be removed. The software is provided as sample code to assist internet, wireless and call center application development companies integrate with the Realex Payments service. Any Programs licensed by Realex Payments to merchants or developers are licensed on a non-exclusive basis solely for the purpose of availing of the Realex Payments service in accordance with the written instructions of an authorised representative ofRealex Payments. Any other use is strictly prohibited. ---------------------------------------------------------------------- */ //Replace these with the values you receive from Realex Payments $merchantid = "compuscript"; $secret = "dnCKSEXeFm"; //The code below is used to create the timestamp format required by Realex Payments $timestamp = strftime("%Y%m%d%H%M%S"); mt_srand((double)microtime()*1000000); /* orderid:Replace this with the order id you want to use.The order id must be unique. In the example below a combination of the timestamp and a random number is used. */ $amount = $_GET['amountdue']; $orderid = $_GET['orderid']; /* $orderid = $timestamp."-".mt_rand(1, 999); /* In this example these values are hardcoded. In reality you may pass these values from another script or take it from a database. */ $curr = "EUR"; /* $amount = "3000"; /*----------------------------------------------- Below is the code for creating the digital signature using the MD5 algorithm provided by PHP. you can use the SHA1 algorithm alternatively. */ $tmp = "$timestamp.$merchantid.$orderid.$amount.$curr"; $md5hash = md5($tmp); $tmp = "$md5hash.$secret"; $md5hash = md5($tmp); ?> $tit="Make Payment in Euros (€)"; include("header.php"); ?>
we accept...![]() |
![]() |