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); 

    1 answer 1

    Need to add

     curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); 

    To cancel the SSL certificate verification. Thanks myself and suggested :))

    • It is not necessary to send data. If they are absent, the response status and error message come up in response, in my situation there is no response at all. - quaresma89
    • Are your data all correct? - Vanya Avchyan
    • Yes added SSL option in CURL and earned - quaresma89
    • Well done, after all, the SSL parameter must be added to https urli in CURL. Bravo :) - Vanya Avchyan
    • Wait, I will correct the answer right now :) - Vanya Avchyan