In paypal’s IPN sample code for PHP5.2, on the last lines, they got a comment to “log for manual investigation”.
else if (strcmp ($res, "INVALID") == 0) {
// log for manual investigation
}
What kind of info should I log and how ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well you have to log the answer you got from paypal via the $_POST vars.
If you use a framework or CMS it might have a logging function. Otherwise you can use PHP’s
error_logfunctionFor example:
Where /var/tmp/ipn.log is a custom path where your log file should appear.