Skip to content

Commit

Permalink
Corrige verificação do certificado iugu
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermehilst committed Mar 1, 2024
1 parent 4042ec2 commit a2105b0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require_once(".../iugu-php/lib/Iugu.php");

```
$ composer require iugu/iugu
Please provide a version constraint for the iugu/iugu requirement: 1.0.6
Please provide a version constraint for the iugu/iugu requirement: 1.0.7
```

O autoload do composer irá cuidar do resto.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.6
1.0.7
1 change: 0 additions & 1 deletion lib/Iugu/APIRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ private function requestWithCURL($method, $url, $headers, $data = [])

$opts[CURLOPT_SSL_VERIFYHOST] = 2;
$opts[CURLOPT_SSL_VERIFYPEER] = true;
$opts[CURLOPT_CAINFO] = realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'data').DIRECTORY_SEPARATOR.'ca-bundle.crt';

curl_setopt_array($curl, $opts);

Expand Down
2 changes: 1 addition & 1 deletion lib/Iugu/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ abstract class IuguResource

abstract class Iugu
{
const VERSION = '1.0.6';
const VERSION = '1.0.7';

public static $api_key = null;
public static $api_version = 'v1';
Expand Down

0 comments on commit a2105b0

Please sign in to comment.