If knowledge is power, then sharing knowledge is ultimate powertrip
Latest Updates
You are here: Home >> PHP >> realex payment gateway integration

realex payment gateway integration

Here is the realex payment gateway integration code using PHP.

$timestamp = strftime(“%Y%m%d%H%M%S”);
$topay = ‘5’;
$merchantid = “mytalentplace”;//here grant crows realex merchent id should come
$secret = "wXcHmZ9yec";

$orderid= $timestamp.'-'.$_SESSION['ord_id'];

$amount =$_POST['amt']*100;


$curr= "USD";

} elseif($_REQUEST['currency']=="euro"){

$curr= "EUR";

}else {

$curr= "GBP";


$tmp = "$timestamp.$merchantid.$orderid.$amount.$curr";
//$tmp = "$timestamp.$merchantid.$orderid";

$md5hash = sha1($tmp);

$tmp = "$md5hash.$secret";

$md5hash = sha1($tmp);

$up="UPDATE mtp_user_payment` SET order_id='”.$lid.”‘ where user_payment_id='”.$lid.”‘”;

for live
for test


About Jawed Shamshedi

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Scroll To Top