|
You can use a little serverside script as your return page to check for PP's posted payment details to it...If they're not there, you can deny access. PP's IPN really isn't needed unless you want to record data in your own db. This is php:
$payment_status = $_POST["payment_status"];
$mc_gross = $_POST["mc_gross"];
$receiver_email = $_POST["receiver_email"];
...are the 3 you should check for. Then you make a if/else statement. I've converted them back to regular vars here for easier coding. The PP dev site is worthless...They'll just wanna sell you scripts.
Here's what I used in my return page that PP automatically posts it's vars to:
if ($payment_status == 'Completed' && $receiver_email == 'zoobie@site.com' && $mc_gross=='5.99')
{ //go to d/l page or wherever}
else{ //get lost}
You can get a free host with php @ freewebspace.net/forums/
__________________
Zoobie or not Zoobie...That is the problem.
<body onUnload="flush( ! )">
Last edited by zoobie; 01-31-2004 at 07:23 PM..
|