Transaction Successful and Hash Verified...'; //Do success order processing here... } else { //tampered or failed $msg = ''; } } ?> 0) { //$Updatecart = "UPDATE shop_user SET `email`='$email',`phone`='$phone',`state`='$state',`country`='$country',`postcode`='$pin',`city`='$city',`address`='$address',`name`='$name' WHERE `user_id`='$sessionid_free' "; } $objcorderid = mysql_query("SELECT * from tbl_confirmorder "); $nosnewcid=mysql_num_rows($objcorderid); $Fetcorderid = mysql_fetch_array($objcorderid); if($nosnewcid=='0') { $maxcorderid='1'; $maxcorderid1=HC.$maxcorderid; } else { $objmaxcorder = mysql_query("SELECT max(orid)+1 as newordid from tbl_confirmorder "); $Fetmaxcorder = mysql_fetch_array($objmaxcorder); $maxcorderid=$Fetmaxcorder['newordid']; $maxcorderid1=HC.$maxcorderid; } if($numrows>0) { $date = date_default_timezone_set('Asia/Kolkata'); $dt2=date('Y-m-d H:i:s' ); /*$Insert_memberord = "INSERT INTO tbl_confirmorder (`userid`,`intsessionid`,`orderid`,`refid`,`varstatus`,`order_tc_id`,`orderstatus`,`res_id`,`type`,`order_date_time`) VALUES ('$sessionid_free','$browsessionid','$maxcorderid','$maxcorderid1','0','$ORDER_ID','0','','','$dt2')"; $inexeord=mysql_query($Insert_memberord);*/ $attachmentfileid = mysql_insert_id(); $sessionid_free= addslashes($_POST['sessionid_free']); //$Updatecart = mysql_query("UPDATE tbl_confirmorder SET `orderid`='$attachmentfileid' where orid='$attachmentfileid' "); $objRe = mysql_query("SELECT * from shop_cart where session_id='$browsessionid'"); while($Fetchneword = mysql_fetch_array($objRe)) { $del_country=$Fetchneword['del_country']; $del_city=$Fetchneword['del_city']; $del_state=$Fetchneword['del_state']; $del_address=$Fetchneword['del_address']; $del_inp=$Fetchneword['del_inp']; $Updatecart = mysql_query("UPDATE tbl_confirmorder SET `contry`='$del_country',`city`='$del_city',`state`='$del_state',`address`='$del_address',`pin`='$del_inp' where orid='$attachmentfileid' "); $productid= $Fetchneword['productid']; $qty= $Fetchneword['qty']; $price= $Fetchneword['price']; $totprice= $Fetchneword['totprice']; $date = date_default_timezone_set('Asia/Kolkata'); $dt2=date('Y-m-d H:i:s' ); $Insert_member = "INSERT INTO tbl_order(`user_id`,`res_id`,`productid`,`qty`, `price`,`totprice`,`orderdate`,`type`,`session_id`,`ordertime`,`orderid`) VALUES ('$sessionid_free','','$productid','$qty' ,'$price' ,'$totprice','$dt2','','$browsessionid','','$attachmentfileid')"; $inexe=mysql_query($Insert_member); } "SELECT * from shop_user where user_id='$sessionid_free_123' "; $objcorderid_n_user = mysql_query("SELECT * from shop_user where user_id='$sessionid_free_123' "); $nosnewcid_n_user=mysql_num_rows($objcorderid_n_user); $Fetcorderid_n_user = mysql_fetch_array($objcorderid_n_user); $new_status=$Fetcorderid_n_user['new_status']; $new_user_name=$Fetcorderid_n_user['email']; echo "SELECT * from tbl_confirmorder where orid='32' "; $objcorderid = mysql_query("SELECT * from tbl_confirmorder where orid='32' "); $nosnewcid=mysql_num_rows($objcorderid); $Fetcorderid = mysql_fetch_array($objcorderid); $new_order_id=$Fetcorderid['orderid']; $new_order_id=$Fetcorderid['orderid']; $userid_new_userid=$Fetcorderid['userid']; $orderdate=$Fetcorderid['order_date_time']; $order_id=$Fetcorderid['refid']; $contry=$Fetchneword['contry']; $city=$Fetchneword['city']; echo $state=$Fetcorderid['state']; $address=$Fetchneword['address']; $pin=$Fetchneword['pin']; $Msg1.='

New Order Recived-Order Details.

Order Details
Order ID:'.$new_order_id.'
Date Added:'.$orderdate.'
Payment Method: Onlinepayment
Name: '.$Fetcorderid_n_user['name'].'
Phone: '.$Fetcorderid_n_user['phone'].'
Email: '.$Fetcorderid_n_user['email'].'
Address: '.$Fetcorderid_n_user['address'].'
Shipping Address:
Address: '.$Fetcorderid['address'].'
City: '.$Fetcorderid['city'].'
State: '.$Fetcorderid['state'].'
Country: '.$Fetcorderid['contry'].'
Pin: '.$Fetcorderid['pin'].'
';?> '; } ?>
Product Quantity Price Total
'.$Fetproduct['name'].' ';?> 0) { ?> RS.'.$Fetproduct['price'].' RS. '.$Fetproduct['price'].'
Sub Total: RS. '.$subtotal.'
Shipping: RS. '.$new_kilo_4.'
Total:( Inclusive of GST ) RS. '.$full_total_cm_ar.'
'; $Msg1; $job_name14357="New Order Received"; $Subjectnew = "$job_name14357-$order_id"; $useremail="drganbuganapathi@gmail.com"; $headers1 = "From: dranbuganapathi.com\r\n"."Content-Type: text/html; charset=iso-8859-1\r\n"; //$headers = "From: dranbuganapathi@gmail.com\r\n"."Content-Type: text/html; charset=iso-8859-1\r\n"; //@mail($useremail,$Subjectnew,$Msg1,$headers1); //@mail($new_user_name,$Subjectnew,$Msg1,$headers1); } //$Recart = mysql_query($Updatecart); exit(); ?> Merchant Check Out Page

Please do not refresh this page...

$value) { echo ''; } ?>