Open josiahking opened 4 years ago
You can't send Paystack API requests on localhost, it must called from an SSL enabled server
Hi, I just did, on localhost. All you need to do is set the curl options for ssl verification to false. If you provide a way to pass curl options parameter before the request is made via this library will be great addition.
On Sun, Jun 28, 2020 at 4:20 PM isoteriksoftware notifications@github.com wrote:
You can't send Paystack API requests on localhost, it must called from an SSL enabled server
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MalikAbiola/paystack-php-lib/issues/22#issuecomment-650779163, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3GKQ7UT5THY3UAULLJG2DRY5NUVANCNFSM4OISKLCA .
I encountered an error while trying to use package on localhost development machine. The package doesn't have a config for HTTP client. An uncaught Exception was encountered
Type: GuzzleHttp\Exception\RequestException
Message: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
Filename: ...vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php
Line Number: 201