CURL Webhooks unable to verify: How do I go about debugging this?

oak2000
Contributor
Contributor

I'm using the code CURL example:
https://developer.paypal.com/docs/classic/ipn/ht-ipn/

If I use the tool IPN Simulator (web accept)
https://developer.paypal.com/developer/webhooksSimulator/
I get

$res == "VERIFIED"

in Sandbox and Production
I get 

$res == "INVALID"

If I do

file_put_contents('testpost.txt', file_get_contents('php://input'));


I do see a POST of the payment confirmation in son formate

even with

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

i get

$res == "INVALID"

How do I go about debugging this?

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.