Closed g-barkin closed 11 years ago
... never mind. It looks like this was a paypal problem (and may still be...). I tried a different browser (chrome instead of FF) and it worked. I also reset the flags for use_ssl, and it still works, so that was a wrong turn. Apparently paypal sandbox sometimes rejects valid transactions. The fact that they are migrating to developer.paypal.com probably isn't helping.
I was getting a this messsage from the ipnlistener.php in my error log: Unexpected response from PayPal" so I appended the whole response, and it begins with: HTTP/1.0 302 Found Location: https://www.sandbox.paypal.com Server: BigIP Connection: Keep-Alive Content-Length: 0
HTTP/1.1 301 Moved Permanently Date: Tue, 02 Apr 2013 20:49:12 GMT Server: Apache X-Frame-Options: SAMEORIGIN Set-Cookie: c9MWDuvPtT9GIMyPc3jwol1VSlO=%7cXvmjn23Tcb0azc7NMszAIsuJMaiY_jL-QYumQHoPR4stjLVr_ivSLJTXCMHJc1gsmzQqBm%7cId2lWRNEPD4zIWpXBFpP9Kk0ZLqfGRljP87gzjM7ntnK4kLPfHEMg_hEntbStokIqA7VMm%7c; domain=.paypal.com; path=/; Secure; HttpOnly Set-Cookie: -1ILhdyICORs4hS4xTUr41S8iP0=_00KImvKbtWRtkGJZuur813tcCmPUBI4CMQZJcBj9YzsQtY0XwfHsjAvEHTk2ZCaJBj8VHSDpZx7raqO; expires=Mon, 28-Mar-2033 20:49:12 GMT; domain=.paypal.com; path=/; Secure; HttpOnly Set-Cookie: cookie_check=yes; expires=Fri, 31-Mar-2023 20:49:12 GMT; domain=.paypal.com; path=/; Secure; HttpOnly Set-Cookie: Apache=10.72.109.11.1364935752095343; path=/; expires=Thu, 26-Mar-43 20:49:12 GMT Location: https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_home&country_lang.x=true Connection: close Content-Type: text/plain; charset=ISO-8859-1
Which is followed by: HTTP/1.1 200 OK and a paypal web page....
I set the options for my instance of the class to: $listener->use_sandbox = true; $listener->use_ssl = false; $listener->follow_location = true;
I added the cert file to my server. Otherwise I'm using this "out of the box". So far I'm only testing with a paypal initiated ipn from their test site. Any idea what I'm doing wrong? I know paypal is in the middle of migrating their developer tools to a new domain... but I don't know if this is related to that or not. Any help greatly appreciated...
Thanks,