diff --git a/lib/Splash/Chargify/Client.php b/lib/Splash/Chargify/Client.php index b7e7a4c..1feb7c7 100644 --- a/lib/Splash/Chargify/Client.php +++ b/lib/Splash/Chargify/Client.php @@ -149,7 +149,7 @@ public function setCurl($curl) { public function getCurl() { if ($this->curl === null) { $this->curl = curl_init(); - + curl_setopt_array($this->curl, array( CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST => 2, @@ -158,6 +158,9 @@ public function getCurl() { CURLOPT_RETURNTRANSFER => true, CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_TIMEOUT => 30, + //Using integer value instead constant because in CentOS + //Curl uses NSS and there CURL_SSLVERSION_TLSv1_2 is undefined + CURLOPT_SSLVERSION => 6, )); } @@ -263,4 +266,4 @@ protected function getCacheKey($uri, $data, $method, $hydrate) { return null; } -} \ No newline at end of file +}