PayPal IPN simulator returning “INVALID” but I've followed the rules

后端 未结 4 1276
滥情空心
滥情空心 2020-12-22 01:51

So I have a PHP service that\'s only job is to accept PayPal IPN connections. I\'m using PSR7 $request->getBody()->getContents() to get the following from

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-22 02:29

    For the record, I have been having this issue with Paypals IPN Simulator, and found that the solution is typical of Paypal:

    The Issue: A correctly formatted IPN test run on the Paypal IPN Simulator returns INVALID when all checks show it should be correct.

    Solution:

    • 1) The simulator ALWAYS runs on the "sandbox" environment. I was using it to check on a "LIVE" payment sites feedback and took hours to discover that your IPN needs to be set to sandbox mode. This is not mentioned on the Paypal Simulator and appears to be hardcoded and "assumed" by Paypal.

    • 2) the Payment_Date field in the IPN Simulator is invalid and not accepted when returned to Paypal, so clear this field or set this field to null when submitting IPN Simulator runs.

    • 3) Sometimes, strangely, Paypal IPN Simulator will tell you

      IPN was not sent, and the handshake was not verified. Please review your information.

      Even Though the simulated transaction is fully processed by my IPN listener script and returns VERIFIED. Always Check your own feedback script rather than the crap Paypal decides to tell you.


    A combination of the above issues has lost several hours of my life. Stripe is far, far better to code with.

提交回复
热议问题