Why doesn’t anything come back that I'm doing wrong?
$paypalUrl = 'https://api-3t.sandbox.paypal.com/nvp'; $requestParams = array( 'USER' => 'jenika.sidorov-facilitator_api1.gmail.com', 'PWD' => '7QEM6E28JLKBPE6L', 'SIGNATURE' => 'A4E0W3p6DNBZUw2ZYCN08fqUfnlGAT4jZ2gf67YS7jmLsnMC-wjbE9I6', 'VERSION' => '204', 'METHOD' => 'SetExpressCheckout' ); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $paypalUrl); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($requestParams)); $result = curl_exec($curl); echo $result;
Understood adding the following option to CURL
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);