AC Gold PayPal IPN stopped working

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

AC Gold PayPal IPN stopped working

Post by AbleMods » Wed Nov 25, 2015 9:20 am

We've got a client who's PayPal IPN have stopped working. Happened about two weeks ago. Nothing changed in the store code for weeks prior to the day it stopped working.

PayPal IPN History is showing HTTP 200 results on most every request. Yet the order does not update in Able Gold.

We've checked IIS logs, we can see PayPal hitting the ProcessPayPal.ashx handler with an HTTP POST and can see the handler returns an HTTP 200.

We enabled logging on the paypal gateway, but no log file ever gets generated. Is there any way to log what's being POSTd to the processpaypal.ashx handler?

We're out of ideas of how to debug this any further.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

mike92117
Lieutenant (LT)
Lieutenant (LT)
Posts: 64
Joined: Sat Nov 07, 2009 6:41 pm

Re: AC Gold PayPal IPN stopped working

Post by mike92117 » Tue Dec 01, 2015 12:59 pm

Are you able to install Fiddler on the server? You would at least be able to see if PayPal is sending back the correct data. Presumably it is with a 200 result, but nice to see if the format or data has changed in anyway.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: AC Gold PayPal IPN stopped working

Post by mazhar » Wed Dec 02, 2015 12:23 am

Enable trace in your web.config. Then trigger the IPN notification, once you get HTTP 200 back from IPN processor then check the Trace.axd and check information logged by IPN handler in it.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: AC Gold PayPal IPN stopped working

Post by AbleMods » Wed Dec 02, 2015 2:56 am

Thanks Mazhar.

I noticed there is a commented section in Log4Net.config that also pertains to trace output. Can that be used instead? I assume then the logs would go to app.log right?

It sure would be handy to have an admin UI to view IPN logging without having to manually edit config files. PayPal IPN is so awkward to troubleshoot. It wouldn't get used much, but boy would it be helpful when it's needed.

In this situation the client changed the PayPal email address in the gateway setup to a non-primary email account. PayPal still reports the IPN posts as HTTP 200, so talking to PayPal is useless - they just "We got an HTTP 200, so it must be a problem on your end."

Surely there is a way for IPNProcessor.cs to detect when the configured PayPal email account is not the primary PayPal address? Right now, it seems like it's just dropping the entire IPN post without any sort of log message. We could have figured this issue out in just a few minutes if that discrepancy was logged.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: AC Gold PayPal IPN stopped working

Post by AbleMods » Wed Dec 02, 2015 3:15 am

mike92117 wrote:Are you able to install Fiddler on the server?
Thanks Mike. Unfortunately we couldn't get Fiddler on the server. I do love Fiddler though, awesome tool for stuff exactly like this!
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply