From 3f25150aef1650cd90de4800f62356f032f34899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Lonsk=C3=BD?= Date: Fri, 12 May 2017 19:40:34 +0200 Subject: [PATCH] [#10] Add CURLOPT_SSLVERSION --- Paylike/Adapter.php | 1 + 1 file changed, 1 insertion(+) 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 ) {