我爲我的網站集成了PayPal自適應付款.Itz在本地完美工作。但是當我在實時服務器上嘗試它時,它顯示我有錯誤。我開始知道錯誤是由於curl SSL Connect錯誤。
任何人都可以幫助我嗎?Curl SSL Connect錯誤
$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>';
顯示什麼錯誤? –
SSL連接錯誤 –