Pay Pal problems suddenly...

Discussion in 'Troubleshooting' started by microlinx, Nov 14, 2015.

  1. microlinx

    microlinx aMember Pro Customer

    Joined:
    Oct 26, 2004
    Messages:
    246
    Anyone having problems with PayPal sending back the IPN for a completed sale?
    No errors in the log yet 4 sales in a row from Pay Pal have gone in-completed forcing me to manually intervene and enter the transaction ID. Suspect a Pay Pal issue.
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,669
    Do you mind to contact us in helpdesk ( https://amember.com/support ) we will check your configuration and help to resolve this issue.
  3. jenolan

    jenolan aMember Coder

    Joined:
    Nov 3, 2006
    Messages:
    493
    FWIW I have been noticing lots of issues lately ... not aMember ... just using PayPal recently has become really spotty.
  4. microlinx

    microlinx aMember Pro Customer

    Joined:
    Oct 26, 2004
    Messages:
    246
    Since 11/13/2015, not one of the PayPal transactions (over a dozen) has completed properly. Pay Pal says they sent the IPN, but aMember is not receiving it and no errors in the logs.
  5. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,669
    Do you mind to check server access log? Do you see these IPN request from PayPal in server access log? Do you have some errors related to PayPal IPN at aMember CP -> Utilities -> Logs?
  6. microlinx

    microlinx aMember Pro Customer

    Joined:
    Oct 26, 2004
    Messages:
    246
    Server logs (for invoices and errors) show nothing after the transaction is completed. However, a quick check on PayPal shows the IPN as "sent". It's either not really being sent, getting lost or not be processed.

    If I just enter my IPN into the browser address bar, I DO get an error message: "An internal error happened in the script, please contact webmaster for details" and a message on the invoices error page: "Wrong IPN received, paypal [_notify-validate] answers: INVALID=200" so it looks like aMember is listening, but PayPal is not sending.
  7. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,669
    Honestly I do not believe PayPal do not send IPN message. I did not face such situation yet. I guess your server have some security filter (mod_secure) and this filter block such IPN messages for some reason (based on some content in request) and it do not reach amember at all, I saw such situation many times.

    That is why I recommend to check Server error and access log (It is not logs at aMember admin interface, you can find it in your hosting control panel or you can ask your system administrator to check it) and filter it for PayPal IPN url. You can find some ideas what is wrong here.
  8. petesweekly

    petesweekly New Member

    Joined:
    May 4, 2007
    Messages:
    6
    Could this issue be related to something I got from Paypal a few months ago? I checked with my ISP and they said I was fine. Here is the Paypal email:

    As we have previously communicated to you, PayPal is upgrading the certificate for www.paypal.com to SHA-256. This endpoint is also used by merchants using the Instant Payment Notification (IPN) product.
    This upgrade is scheduled for 9/30/2015; however, we may need to change this date on short notice to you to align to the industry security standard.
    You’re receiving this notification because you’ve been identified as a merchant who has used IPN endpoints within the past year. If you have not made the necessary changes, we urge you to do so right away to avoid a disruption of your service!


    Because these changes are technical in nature, we advise that you consult with your individuals responsible for your PayPal integration. They will be able to identify what, if any, changes are needed. Please share this email and the hyperlinks below with your technical contact for evaluation.

    Testing in the Sandbox is one of the best ways to make sure your integration works. Sandbox endpoints have been upgraded to accept secure connections by the SHA-256 Certificates.

    Full technical details can be found in our Merchant Security System Upgrade Guide. In addition, our 2015-2016 SSL Certificate Change microsite contains a schedule of our service upgrade plan.
    Nothing bad happened back then, but they may have delayed implementing it.
  9. petesweekly

    petesweekly New Member

    Joined:
    May 4, 2007
    Messages:
    6
    My ISP log reflects this:

    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:12:55:23 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:12:56:14 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:12:57:51 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:12:58:03 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:12:58:33 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:12:59:10 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:12:57:59 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:13:01:04 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:13:01:24 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:13:01:29 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:13:01:59 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:13:02:03 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:13:03:10 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:13:03:39 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:13:05:53 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:13:07:51 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:13:08:22 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 200 23150 "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 173.0.81.1 - - [29/Nov/2015:13:11:43 +0000] "POST /amember/payment/paypal/ipn HTTP/1.0" 500 - "-" "PayPal IPN ( https://www.paypal.com/ipn )"
    businessheroes.academy 88.214.193.184 - - [29/Nov/2015:13:17:05 +0000] "GET /amember/cron HTTP/1.1" 200 - "-" "aMember Cron Service (www.amember.com)"​
  10. petesweekly

    petesweekly New Member

    Joined:
    May 4, 2007
    Messages:
    6
    And finally, forgive the pile of info, the typical error in the Amember log reads thus:

    Wrong IPN received, paypal [_notify-validate] answers: <HTML><HEAD> <TITLE>Internal Server Error</TITLE> </HEAD><BODY> <H1>Internal Server Error - Read</H1> The server encountered an internal error or misconfiguration and was unable to complete your request.<P> Reference&#32;&#35;3&#46;161dde17&#46;1448802507&#46;b1d3401 </BODY></HTML> =500

    I hope the above helps cos otherwise I face an exciting reconciliation issue...
  11. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,669
    What is version of aMember you use? Do you mind to update your installation to latest version?
    Current latest version is 4.7.1

    It seems PayPal IPN validation server do not accept HTTP requests with default User-Agent header.
    In latest version of aMember we use aMember specific User-Agent. I guess it can resolve your issue.

    Best Regards.
  12. accularian

    accularian Online Macintosh support — aMember Guru.

    Joined:
    Dec 12, 2006
    Messages:
    39
    I recently had an IPN issue with PayPal. I used their IPN Simulator to determine that the handshake was not happening. I am on a virtual server at BlueHost and after I reconfigured my IPTables to open all the appropriate ports for internet traffic the problem went away. Hope that helps.
  13. paullee357

    paullee357 aMember Pro Customer

    Joined:
    Oct 28, 2012
    Messages:
    38
    Our treasurer received this email from Paypal about our once successfull IPN. I tested the IPN link and it does have an aMember error. Is this related to the issue here?
    '
    Hello Treasurer,

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

    http://domain.org/member/payment/paypal/ipn

    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.


    Thanks,
    PayPal

    '
  14. paullee357

    paullee357 aMember Pro Customer

    Joined:
    Oct 28, 2012
    Messages:
    38
    @petesweekly , Were you able to get your problem fixed? I have the same issue.

    @accularian, for your fix what do I ask the my hosting provider to look at and will they reconfigure IP tables on a shared hosting platform?
  15. accularian

    accularian Online Macintosh support — aMember Guru.

    Joined:
    Dec 12, 2006
    Messages:
    39
    Yikes! I had to do this... and learn how to, all by myself because I am on a VPS at Bluehost and they do not offer that level of support in a VPS account. There was plenty of info to be found via Google, etc and I can send you my notes if you want. If you are on shared hosting it in all likelihood, different.

    In essence, IPTables is just the command line method of configuring the server's firewall. That is probably the term you want to use as you pursue this with your provider..."firewall." They need to allow traffic on all the normal web ports... PayPal will tell you which ones you need.

    Finally, I would love to tell you that is is exactly what fixed it but I was trying so many things during that time it is difficult to say for sure.... but about 90% sure.

Share This Page