Hi guys,
i'm looking for help to integrate this:
<html>
<head>
<title>Global Iris RealAuth PHP redirect sample code</title>
<?
/*
Pay and Shop Limited (www.realexpayments.com) - License 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 Global Iris technical
references, application programming interfaces (APIs) and other sample
code and software ("Programs") either free of charge from
Pay and Shop Limited 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 Pay and Shop Limited, 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 Global Iris service.
Any Programs licensed by Pay and Shop Limited to merchants or developers
are licensed on a non-exclusive basis solely for the purpose of availing
of the Global Iris payment solution service in accordance with the
written instructions of an authorised representative of Pay and Shop
Limited. Any other use is strictly prohibited.
Dated February 2012.
----------------------------------------------------------------------
*/
$merchantid = "";
$secret = "";
$timestamp = strftime("%Y%m%d%H%M%S");
mt_srand((double)microtime()*1000000);
$orderid = $timestamp."-".mt_rand(1, 999);
$curr = "GBP";
$amount = "3000";
$tmp = "$timestamp.$merchantid.$orderid.$amount.$curr";
$md5hash = md5($tmp);
$tmp = "$md5hash.$secret";
$md5hash = md5($tmp);
?>
</head>
<body bgcolor="#FFFFFF">
<!--
are POSTed to.
The values are sent to Global Iris via hidden fields in a HTML form POST.
Please look at the documentation to show all the possible hidden fields you
can send to Global Iris.
Note:>
The more data you send to Global Iris the more details will be available
on our reporting tool, realControl, for the merchant to view and pull reports
down from.
Note:>
If you POST data in hidden fields that are not a Global Iris hidden field that data
will be POSTed back directly to your response script. This way you can maintain
data even when you are redirected away from your site
-->
<input type=hidden name="MERCHANT_ID" value="<?=$merchantid?>">
<input type=hidden name="ORDER_ID" value="<?=$orderid?>">
<input type=hidden name="CURRENCY" value="<?=$curr?>">
<input type=hidden name="AMOUNT" value="<?=$amount?>">
<input type=hidden name="TIMESTAMP" value="<?=$timestamp?>">
<input type=hidden name="MD5HASH" value="<?=$md5hash?>">
<input type=hidden name="AUTO_SETTLE_FLAG" value="1">
<input type=submit value="Proceed to secure server">
</form>
</body>
</html>
I would really appreciate
thanks.