diff --git a/Paylike/Adapter.php b/Paylike/Adapter.php index a81e089..93378ea 100644 --- a/Paylike/Adapter.php +++ b/Paylike/Adapter.php @@ -57,6 +57,7 @@ public function request( $url, $data = null, $httpVerb = 'post' ) { 'Content-Type: application/json' ) ); curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); + curl_setopt( $ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2 ); curl_setopt( $ch, CURLOPT_USERPWD, ":" . $this->apiKey ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); switch ( $httpVerb ) {