From bc51d8d5d9c35654b982e9c00684c975ebe07f56 Mon Sep 17 00:00:00 2001 From: Wallace Brito Date: Fri, 31 Jan 2020 01:39:07 -0300 Subject: [PATCH] Update boletofacil.php Ignora a checagem CURLOPT_SSL_VERIFYHOST --- boletofacil.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boletofacil.php b/boletofacil.php index e7f92e2..588c174 100644 --- a/boletofacil.php +++ b/boletofacil.php @@ -142,6 +142,9 @@ public function cancelCharge($code) { private function request($urlSufix, $data) { $curl = curl_init(); + + curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE); + curl_setopt_array($curl, array( CURLOPT_URL => ($this->sandbox ? BoletoFacil::SANDBOX_URL : BoletoFacil::PROD_URL).$urlSufix, CURLOPT_RETURNTRANSFER => true,