g2a-official / integration-api-client

PHP client for purchasing products on g2a.com
MIT License
14 stars 5 forks source link

Fixed to ignore SSL errors when using sandboxapi #5

Open ghost opened 4 years ago

ghost commented 4 years ago

Without this, was getting the following Guzzle error:

`PHP Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in [...]\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:201 Stack trace:

0 [...]\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)

1 [...]\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))

2 [...]\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHt in [...]\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 201

`