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

后端 未结 4 1264
滥情空心
滥情空心 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:33

    The PayPal transaction validation always returns INVALID if the IPN comes from the IPN simulator, but I found a workaround. If the IPN will come from a real transaction, it works fine. Here is how I did.

    1. Go to PayPal Developer and Login
    2. Create a sandbox account (if you already have a sandbox account, ignore these 2 steps)
    3. Now go to https://www.sandbox.paypal.com and login
    4. Then visit button management and create a button
    5. Don't forget to set the IPN notification URL for your sandbox acccount
    6. Now make a real tracaction from the button you created in the sandbox account
    7. It works flawlessly

提交回复
热议问题