Hi,
I am using Localhost for configuration.
i am having issue while making transaction.
"SSL certificate problem: unable to get local issuer certificate"
SquareConnect\ApiException Object
(
[responseBody:protected] =>
[responseHeaders:protected] =>
[responseObject:protected] =>
[message:protected] => API call to https://connect.squareup.com/v2/locations/CBASEK8mmvqJBGz6ugnDBxHekt4gAQ/transactions failed: SSL certificate problem: unable to get local issuer certificate
[string:Exception:private] =>
Can you please help?
how can i resolve this issue?
I'm not expert at the API (Just got started this week) but I ran into the same issue and used the following to resolve locally:
SquareConnect\Configuration::getDefaultConfiguration()->setSSLVerification(FALSE);
where do you change this part of code at?
Hey @daryltan - Not too sure where you can add the code the Sellers are referring to in this thread. Is your SSL on your site not working? If you still need help, can you please provide us with more details?
Thank you.
When I placed my index.php file under wamp64/www/square-php-sdk and tried to launch it with localhost, I am getting the error "Recieved error while calling Square: SSL certificate problem: unable to get local issuer certificate"
How to do it on new API with
SquareClient()?
Square Community