- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
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?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
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);
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
where do you change this part of code at?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
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.
Community Moderator, Square // Moderadora de la Comunidad, Square
Sign in and click Mark as Best Answer if my reply answers your question.
Inicie seción y haga clic en Marcar como "Mejor Respuesta" si mi respuesta contesta su pregunta.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
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"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report