Reputation: 373
For some reason, when I try to connect to paypal sandbox API and do SetExpressCheckout using my XAMPP server it fails. I turned error reporting on and this is the message I get:
Warning: file_get_contents(https://api-3t.sandbox.paypal.com/nvp/): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
I've done some tests and it just does not make sense:
Warning:
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: No such host is known.
So why is it that when I connect to https://api-3t.sandbox.paypal.com/nvp/ using my local server there is no response? I have not changed the code and it still works with Paypal live so what's going on here suddenly?
Upvotes: 0
Views: 1608
Reputation: 2517
From March 25 PayPal doesn't support HTTP/1.0, see details here. You can find helpfull this post
Upvotes: 2