Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

WP eStore – IPN Validation Failed on Specific Transactions

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › WP eStore – IPN Validation Failed on Specific Transactions

Tagged: error, IPN

  • This topic has 5 replies, 2 voices, and was last updated 11 years, 7 months ago by gabriel.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • September 17, 2013 at 7:41 pm #9698
    gabriel
    Member

    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 #57785
    admin
    Keymaster

    Hi 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 #57786
    gabriel
    Member

    Hi, 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 #57787
    gabriel
    Member

    I’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 #57788
    admin
    Keymaster

    Okay 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 #57789
    gabriel
    Member

    After 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.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ