I am working on Paypal with API as per ref of http://www.saaraan.com/2012/07/paypal-expresscheckout-with-php
I am getting the below error. i tested in Couple of Servers but not succeded. The problem occurs while sending request to Paypal in that code.
Error: SetExpressCheckout failed: Unknown SSL protocol error in
connection to api-3t.sandbox.paypal.com:443 (35)
Related
I'm using laravel to write a SMS application. So I' am also using the Nexmo API, I followed the tutorial on github,
But, when I try to send it on localhost. I got a curl SSL error:
RequestException in Promise.php line 135: <br/>
cURL error 60: SSL certificate problem: unable to get local issuer certificate
(see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
I'm trying fetch some data from Twitter API. I've got a shared host with SSL support and I've configured my Twitter developer account.
However, if I try to load my script (as per example) it returns:
{"errors":[{"code":32,"message":"Could not authenticate you."}]}
Fatal error: Uncaught Exception: Unknown SSL protocol error in connection to api.twitter.com:443 in
My script is based on https://github.com/J7mbo/twitter-api-php
When I was trying to integrate instamojo php payment gateway in codeigniter on local machine I keep on getting following error message
"Error: Something went wrong. cURL raised an error with number: 77 and
message: error setting certificate verify locations: CAfile:
C:\wamp\bin\apache\apache2.4.9\bin\cacert.pem CApath: none."
I research a lot but I didn't find any setting to set SSL_verfifer false in instamojo php payment api. Need a bit of assistance on it.
In Instamojo API just change this to false in line number 95
$options[CURLOPT_SSL_VERIFYPEER] = false;
I'm trying to connect to a API using SOAP (nusoap client), but when i try and make a request I get this error:
wsdl error: Getting https://example.com/webservices.asmx?WSDL - HTTP ERROR: cURL ERROR: 0: NSS: client certificate not found (nickname not specified)
The API does not require a certificate to connect to the API, but for some reason I am getting an error with a none existent certificate. This code works on my VM, but not on the live site, does anyone know why this error is occurring?
Thanks
Rob
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:
I can connect to the live API with correct credentials.
I can connect to the live API with incorrect credentials.
I cannot connect to the sandbox API with correct or incorrect credentials.
I can connect to live API and sandbox API using web browser using correct or incorrect credentials.
If I put in an invalid website name, it gives me a different warning (below).
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?
From March 25 PayPal doesn't support HTTP/1.0, see details here. You can find helpfull this post