-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CURL ERROR: SSL connect error #371
Comments
I switched to using the "hello world" test script ( following these instructions: https://developer.authorize.net/hello_world/ ) and found that the same problem was occurring. In "phplog" file I found this error recorded: I inserted this code below line 73 in HttpClient.php: Additionally, I updated vendor/authorizenet/authorizenet/lib/ssl/cert.pm with the CA root certificate bundle provided here: https://github.com/activemerchant/active_merchant/blob/master/lib/certs/cacert.pem |
I believe you just need to update the cert.pem file found in the "ssl" folder. If you google the error, this is a common CURL issue. I believe the one you need is here (yes, I'm aware how the URL looks, I thought the same thing): https://curl.haxx.se/docs/caextract.html |
I have verified my sandbox credentials and I have also used API live console to successfully execute an Auth only test transaction using https://developer.authorize.net/api/reference/index.html#payment-transactions-authorize-a-credit-card
However, when I use the php sample code (https://github.com/AuthorizeNet/sample-code-php/blob/master/PaymentTransactions/authorize-credit-card.php)
with my API Login ID and transaction key hard coded into the sample, I'm only ever getting "No response returned"
The endpoint specified by \net\authorize\api\constants\ANetEnvironment::SANDBOX is https://apitest.authorize.net
Any ideas about what's going wrong?
The text was updated successfully, but these errors were encountered: