Code Inaccuracy in the IPNGuide.pdf file on page 22

Brian_Power
New Community Member

Just a heads up on a small glitch.  The IPNGuide PDF file contains sample code for setting up an IPN "listener"  file for interaction with PayPal.  The code, as listed will not work correctly because it lacks a final closing bracket "}" which should fall exactly before the closing "?>" tag at the end of the code. It should look like

 

 

mail($email, "Live-INVALID IPN", $emailtext . "\n\n" . $req);

}

}

fclose ($fp);

}   //NOTICE THIS LAST PARENTHESIS IS MISSING IN THE PDF FILE

?>

 

instead of :

 

mail($email, "Live-INVALID IPN", $emailtext . "\n\n" . $req);

}

}

fclose ($fp);

 

?>

 

Just thought this information might be useful for future publications of the pdf to assure that the code will work for newbies.

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.