diff --git a/src/ExchangeRate.php b/src/ExchangeRate.php index 7a789a1..74060f2 100644 --- a/src/ExchangeRate.php +++ b/src/ExchangeRate.php @@ -18,7 +18,7 @@ public function __construct($apiToken) // $this->baseUri = "https://tecactus.com/"; $this->baseUri = "http://tecactus.app/"; $this->apiToken = $apiToken; - $this->client = new Client(['base_uri' => $this->baseUri, 'headers' => ['Accept' => 'application/json', 'Authorization' => 'Bearer ' . $this->apiToken]]); + $this->client = new Client(['base_uri' => $this->baseUri, 'verify' => false, 'headers' => ['Accept' => 'application/json', 'Authorization' => 'Bearer ' . $this->apiToken]]); } public function get($year, $month, $day = null, $forcePrevious = false, $asArray = false) diff --git a/src/RUC.php b/src/RUC.php index 90abdcb..354718a 100644 --- a/src/RUC.php +++ b/src/RUC.php @@ -17,7 +17,7 @@ public function __construct($apiToken) { $this->baseUri = "https://tecactus.com/"; $this->apiToken = $apiToken; - $this->client = new Client(['base_uri' => $this->baseUri, 'headers' => ['Accept' => 'application/json', 'Authorization' => 'Bearer ' . $this->apiToken]]); + $this->client = new Client(['base_uri' => $this->baseUri, 'verify' => false, 'headers' => ['Accept' => 'application/json', 'Authorization' => 'Bearer ' . $this->apiToken]]); } public function getByRuc($ruc, $asArray = false)