Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › WP eStore – IPN Validation Failed on Specific Transactions
- This topic has 5 replies, 2 voices, and was last updated 11 years, 2 months ago by gabriel.
-
AuthorPosts
-
September 17, 2013 at 7:41 pm #9698gabrielMember
Hi guys,
I’ve been using WP eStore for a while and I’m happy with it. However, it sometimes does not validate the IPN, although the funds have been received into my PayPal account and IPN notifications are turned ON.
The only difference with this specific transaction is that it has the “ap_id” appended to the ‘custom’ string. I’ve re-sent the PayPal IPN from my PayPal account twice for this transaction got the same – FAILED – result. However, when I re-sent another one that was successful before, it worked (without any “ap_id” in it).
It also happened before in the past to have the IPN not validated without having sale made through the affiliate link. It just happens once in a while.
Here’s the result I got (the redirect to thank you page works fine and the download link is showing, but the email is not sent to the customer, nor his details are recorded in the database):
<br />
[09/17/2013 7:00 PM] - SUCCESS :Paypal Class Initiated by 173.0.81.1 eStore Version: 6.9.7.2<br />
[09/17/2013 7:00 PM] - SUCCESS :Post string : [redacted]
[09/17/2013 7:00 PM] - SUCCESS :Connection to www.paypal.com successfuly completed.<br />
[09/17/2013 7:00 PM] - FAILURE :IPN validation failed. - Response: HTTP/1.1 200 OK<br />
Server: Apache<br />
X-Frame-Options: SAMEORIGIN<br />
Content-Type: text/html; charset=UTF-8<br />
Date: Tue, 17 Sep 2013 19:00:31 GMT<br />
Content-Length: 7<br />
Connection: close<br />
Set-Cookie:
[09/17/2013 7:00 PM] - SUCCESS :Paypal class finished.<br />Any tips? I’ve checked the other similar posts from this forum, but couldn’t find a solution.
Regards,
Gabriel
September 18, 2013 at 12:35 am #57785adminKeymasterHi Gabriel, This IPN response that you posted has some incorrect data in it which is why it is failing to validate. Please try loading a fresh copy of the plugins:
https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins
Then let me know if you still see the issue. Are you using any caching plugin?
September 18, 2013 at 7:47 am #57786gabrielMemberHi, I’d like to know what was wrong with it and WHY it did not work in this specific situation, as it usually works fine. I will load a fresh copy of both WP eStore and WP Affiliate then let you know.
PS: I’m not using any caching plugin. I used to do that, though.
September 19, 2013 at 5:57 pm #57787gabrielMemberI’ve updated both plugins with the latest versions and got the same result: IPN Validation Failed:
<br />
[09/19/2013 5:54 PM] - SUCCESS :Paypal Class Initiated by 173.0.81.1 eStore Version: 6.9.9.2<br />
[09/19/2013 5:54 PM] - SUCCESS :Post string : [redacted]
[09/19/2013 5:54 PM] - SUCCESS :Connection to www.paypal.com successfuly completed.<br />
[09/19/2013 5:54 PM] - FAILURE :IPN validation failed.<br />
[09/19/2013 5:54 PM] - SUCCESS :Paypal class finished.<br />Any ideas?
September 19, 2013 at 11:44 pm #57788adminKeymasterOkay at least this one doesn’t have any weird headers so thats good. It still has some unnecessary line break characters. One of your plugins is most likely injecting that in the request and causing the validation to fail. I will take a look at your site to get more details. I have sent you an email.
September 20, 2013 at 8:07 am #57789gabrielMemberAfter a few tests, I’ve managed to find out that a plugin that I have under development was altering $_POST by applying htmlspecialchars() to the values. After removing that filter, PayPal IPN gets verified and everything works as it should. Thank you for the tip of checking the plugins. I thought the problem has a different cause as most of the time it validated, yet sometimes it didn’t.
-
AuthorPosts
- You must be logged in to reply to this topic.