IS there any one tell me clearly how to integrate Paypal IPN.Its really confusing to use the methods given.this is my final page paypment.php from this i need to send to paypal IPN & if the payment is done i need to set the redirecting page to acctd.php (where i am generating usename & passwrd).
to integrate in my domain do i need any paypal account.if so is it ok if i have personal account ? reply with basic details.
<?
session_cache_limiter('must-revalidate');
session_start();
?>
<html>
<head><title>System</title>
</head>
<!--body bgcolor="lavenderblush"-->
<body bgcolor="seashell">
<?
echo "<center><b><font face='verdana' color='brown' size='4'>Welcome to System</font></b></center><br>";
?>
<?
$n=$_SESSION['no_server'];
//echo $n;
$i=1;
while($i<=$n)
{
//$ip=$_POST['ip_add'];
//$ip[$i]=$_POST['ip_add'][$i];
$ip[$i]= $_POST['ip_add'.$i];
$op[$i]=$_POST['op_system'.$i];
$rootpass[$i]=$_POST['root_pass'.$i];
//echo $rootpass[$i];
$addnotes[$i]=$_POST['add_notes'.$i];
$esc[$i]=$_POST['esc_proced'.$i];
//echo $ip[$i];echo $op[$i];echo $rootpass[$i];echo $addnotes[$i];echo $esc[$i];
$_SESSION['ipaddress'.$i]=$ip[$i];
//$session[ip.$i]=$ip[$i];
//echo $_SESSION['ipaddress'.$i];
$_SESSION['opsystem'.$i]=$op[$i];
//echo $_SESSION['opsystem'.$i];
$_SESSION['rootpass'.$i]=$rootpass[$i];
//echo $_SESSION['rootpass'.$i];
$_SESSION['add_notes'.$i]=$addnotes[$i];
$_SESSION['esc_prodced'.$i]=$esc[$i];
$i++;
}
?>
<form method="post" action="serverinfo.php" name="form1">
<table border='1' align='center' width='100%'>
<tr>
<td align="center">
<table border="1" align="center" width="100%">
<tr>
<td align="center" colspan="2"><font face='verdana' color='black' size='3'><b>Payment Details</b></font></td>
</tr>
<tr>
<td align="right"><font face='verdana' color='black' size='2'>Number of Servers you selected :</font></td>
<td align="left"><font face='verdana' color='black' size='2'><input type="servers" name="fullname" size="35" value="<? echo $_SESSION['no_server']; ?>"></font></td>
</tr>
<?
$fee="50";
$fee=$fee*$_SESSION['no_server'];
$_SESSION['fee']=$fee;
?>
<tr>
<td align="right"><font face='verdana' color='black' size='2'>Recurring Fee :</font></td>
<td align="left"><font face='verdana' color='black' size='2'><input type="text" name="fee" size="35" value="<? echo "$".$fee; ?>"></font></td>
</tr>
<tr><td colspan="2"> </td></tr>
<tr><td colspan="2" align="center">Click <a href="paypal.php">Here for Payment.</td></tr>
<!--tr><td colspan="2" align="center">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick_subscriptions">
<input type="hidden" name="business" value="aaa@domain.com">
<input type="hidden" name="no_shipping" value="1">
<input type="image" src="http://www.payapal.com/en_us/i/bin/x-click-but20.gif" border="0" name="submit" alt="Make Payment with Paypal-Its fasr,free and secure!">
<input type="hidden" name="a3" value="5.00">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
</td></tr-->
</table>
</td>
</tr>
</table>
</form>
</body>
</html>