<?php
if(isset($_REQUEST['verify_sign'])){
$paysig=$_REQUEST['verify_sign'];
}
else{
$paysig=$_REQUEST['sig'];
}
if($_SESSION[paypalsig]!=$paysig){
if(isset($_REQUEST['receiver_email'])){
echo $custombid=$_REQUEST['custom'];
echo $business=$_REQUEST['business'];
echo $username=$_REQUEST['item_name'];
echo $pid=$_REQUEST['item_number'];
echo $amount=$_REQUEST['mc_gross'];
echo $paypalemail=$_REQUEST['receiver_email'];
}
else{
echo $pid=$_REQUEST['item_number'];
echo $custombid=$_REQUEST['cm'];
echo $amount=$_REQUEST['amt'];
echo $paypalstatus=$_REQUEST['st'];
echo $paysign=$_REQUEST['sig'];
}
}
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<FORM action="https://www.sandbox.paypal.com/cgi-bin/webscr" method=post name=frm>
<!--Paypal hidden value Start-->
<INPUT type=hidden value=_xclick name=cmd>
<INPUT type=hidden value="yourmailid@gmail.com" name=business>
<INPUT type=hidden value="itemname" name=item_name>
<INPUT type=hidden value="2345" name=item_number>
<INPUT type=hidden value=http://www.topcone.com/paypaltest.php name=return>
<INPUT type=hidden value=1 name=no_note>
<INPUT type=hidden value=USD name=currency_code>
<INPUT type=hidden value=http://www.topcone.com/paypaltest.php name=notify_url>
<INPUT type=hidden value=http://www.topcone.com/paypaltest.php name=cancel_return>
<input type="hidden" value="1" name="quantity" />
<input type="hidden" value="itemname" name=custom />
<input type="hidden" value="20.00" name="amount" />
<input type="image" src="https://www.sandbox.paypal.com/en_GB/i/btn/btn_buynowCC_LG.gif" alt="payment" border="0"/>
</form>
</body>
</html>
No comments:
Post a Comment