PayPal Payments15 Mar 2018 in: Troubleshooting
If for some reason your are not able to process paypal payments, here are few thing to check:
- Make sure your paypal email address is correct (case sensitive).
- Make sure your hosting firewall is not blocking access to PayPal IP address.
- Take a look at any error logs located in /gateways/paypal/ folder.
- For paypal sandbox testing environment, make sure you have two accounts one as seller, and the other as buyer.
- Open up /gateways/paypal/ipn.php with any text editor and make sure that line 23 and 24 look like in picture below.
To further debug paypal, you can add custom file log. Same file as in above, this time around line 20 insert piece of code as in below.
/* only for debuggin purpose. Create logfile.txt and chmot to 0777*/ ob_start(); echo '<pre>'; print_r($_POST); echo '</pre>'; $logInfo = ob_get_contents(); ob_end_clean(); $file = fopen('logfile.txt', 'a'); fwrite($file, $logInfo); fclose($file);
Run another transaction and this time check for logfile.txt