PayPal IPN listener response

plorebstorat

New Member
After fully testing in PayPal's sandbox and getting the process to work perfectly. I've taken it live and it's not working.I'm receiving the POST data from PayPal via the notify_url. I then send it back to PayPal with cmd=_notify-validate infront of the data.Using PayPals documented code, I'm using this to send the message to PayPal.\[code\]$header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";$header .= "Content-Type: application/x-www-form-urlencoded\r\n";$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";$fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);\[/code\](using this code to get the response)\[code\]$res = stream_get_contents($fp, 1024);\[/code\]The response I'm getting back is:HTTP/1.1 200 OKDate: Fri, 11 May 2012 20:51:28 GMTX-Frame-Options: SAMEORIGINSet-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=SdeBuKBN39mjr3w791CHr_MlSkoBdDmbxpQOjT_WOicyD_Sg6BYZm8koiEv2-5XBUkCjpXQwFqIxIQgIyo3e7arO8015CVw96dpne2CNjbgc1CvpDlqXn72IBWq%7cW7uYn6Za7ljG4iLtLVcyFoPk8gZD7sr_S8WjwZrZWD8UXzE7KAH3bll9TVik3wbdCFlrZG%7csxrZZHSH5SWBGfrKsIU6Dz-K43j4h37efIkWFcVJVER0ncRxNJ0wANN1Dp3pZpV2PLxC1m%7c1336769488; domain=.paypal.com; path=/; Secure; HttpOnlySet-Cookie: cookie_check=yes; expires=Mon, 09-May-2022 20:51:28 GMT; domain=.paypal.com; path=/; Secure; HttpOnlySet-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnlySet-Cookie: navlns=0.0; expires=Thu, 06-May-2032 20:51:28 GMT; domain=.paypal.com; path=/; Secure; HttpOnlySet-Cookie: Apache=10.73.8.50.1336769488653443; path=/; expires=Sun, 04-May-42 20:51:28 GMTVary: Accept-EncodingStrict-Transport-Security: max-age=14400Connection: closeContent-Type: text/html; charset=UTF-8Set-Cookie: TSe9a623=bb3c8ce40a7f3f6d1c018255c9What I'm not getting is the INVALID or VERIFIED response in this. This is the entire output from PayPal. In the sandbox, I was getting VERIFIED in the last line, and no Set-Cookie.It seems weird that I'm not receiving an INVALID or VERIFIED response.Any suggestions would be appreciated.
 
Back
Top