diff --git a/src/Gerencianet/Request.php b/src/Gerencianet/Request.php index 6ba274f..44c7604 100755 --- a/src/Gerencianet/Request.php +++ b/src/Gerencianet/Request.php @@ -78,7 +78,9 @@ private function verifyCertificate($certificate) public function send($method, $route, $requestOptions) { try { - $requestOptions['cert'] = $this->verifyCertificate($this->config['certificate']); + if (isset($this->config['certificate'])) { + $requestOptions['cert'] = $this->verifyCertificate($this->config['certificate']); + } if (isset($this->config['headers'])) { foreach ($this->config['headers'] as $key => $value) {