I integrating Paypal adaptive payment for my site.Itz works perfect in local.but when I tried it in live server it shows me an error.I came to know that the error is due to the curl SSL Connect error.
Can anyone help me with this?
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $this->apiUrl.$call);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE);
curl_setopt($ch, CURLOPT_TIMEOUT, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers);
return json_decode(curl_exec($ch), TRUE);
print_r( json_decode(curl_exec($ch), TRUE) );
echo '<pre>';print_r( curl_getinfo($ch) ); echo '</pre>'; echo '<br>';