Jump to content

PayPalAPI - Instant Payment Notifications (IPN) failing


sm3004

Recommended Posts

I received an email from Paypal today:

Hello ,

Please check your server that handles PayPal Instant Payment Notifications (IPN). Instant Payment Notifications sent to the following URL(s) are failing:

http://www.myshop.com/modules/paypalapi/ipn.php

If you do not recognize this URL, you may be using a service provider that is using IPN on your behalf. Please contact your service provider with the above information. If this problem continues, IPNs may be disabled for your account.

Thank you for your prompt attention to this issue.


How do I fix this? All the IPNs are marked as retrying and failed but the payments are working fine. Please Help

Link to comment
Share on other sites

Here is the error log:


[11-Feb-2010 16:58:08] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
[11-Feb-2010 16:58:08] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/uploadprogress.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/uploadprogress.so: cannot open shared object file: No such file or directory in Unknown on line 0
[11-Feb-2010 16:58:08] PHP Warning:  require_once(/home/aagadmin/public_html/config/../classes/PaypalLib.php) [function.require-once]: failed to open stream: No such file or directory in /home/aagadmin/public_html/config/config.inc.php on line 20
[11-Feb-2010 16:58:08] PHP Fatal error:  require_once() [function.require]: Failed opening required '/home/aagadmin/public_html/config/../classes/PaypalLib.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/aagadmin/public_html/config/config.inc.php on line 20

Link to comment
Share on other sites

After the initial scare, I contacted Paypal and had them explain it properly. From what I understood, IPN isn't necessary for Paypal API to work. I have turned it off last night but am awaiting a Paypal order to see if it really has any effect on the back office of PrestaShop.

If you buy something on my site with Paypal, I can tell you if you need IPN or not ;-)

Link to comment
Share on other sites

I had this same problem. the issue is that the script is looking for a file "PaypalLib.php" in the directory /classes but the paypalapi module places the PaypalLib.php in the directory /modules/paypalapi/api a temporary workaround is to copy the file PaypalLib.php to the /classes directory got this functionality working for my site

Link to comment
Share on other sites

mikee, can you explain what the benefit is of having IPN on with PrestaShop? My payments have been working fine with it turned off.

EDIT: I copied the PayPallib.php file into the /classes folder and went to Paypal and had all the failed IPNs retried and they all failed again. Do I need to send the PayPalConnect.php file to the /classes folder too?

Link to comment
Share on other sites

sm3004 was correct. Moving the file did not actually solve the problem, it just eliminates the error posted above. There is no real benefit to having IPN's with prestashop. IPN's are useful if a chargeback is made or to let your shop know when an echeck or payment review has cleared. Prestashop does not at the moment support either of these functions. The only reason I was trying to resolve this issue was that I run another site through the same paypal account and need IPN's to work for the other site

Link to comment
Share on other sites

  • 6 months later...
  • 5 months later...

I was getting mails from Paypal regarding failed ipn, I wrote to them, here is the response, hope it helps others.

My name is ****** with PayPal Merchant Services, I'm happy to assist you with your question today.
Before IPN was turned off, there were some IPNs that were still sent and are now failing with HTTP Response 500 to http://www.*******.com/modules/paypal/ipn.php.
Those will be retransmitted to the same url until they permanently fails. The retransmission of an IPN is executed automatically if we do not receive a response back on time according to the following schedule for 4 days every 10s, 20s, 40s, .... , 40960s, 81920s, 86400s, 86400s, (86400s?,) . Unfortunately we do not have the option to stop them.
Please ignore the failed IPN for a couple more days until they permanently fail.

Thank you for choosing PayPal, I wish you the best with your future transactions.

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...