cancel
Showing results for 
Search instead for 
Did you mean: 

I am trying to use the transaction details Report using PHP

I am trying to use the transaction details Report using PHP. I am new to PHP. I am using the PRODUCTION_SERVER

 

using the example getBatchStatisticsRequest.php

getting the errors below, What am I doing wrong ?

 

exception 'AuthnetXMLException' with message 'Connection error: error setting certificate verify locations: CAfile: D:\Quote\authorizelib/ssl/cert.pem CApath: none (77)' in D:\Quote\authorize\AuthnetXML.class.php:181 Stack trace: #0 D:\Quote\authorize\AuthnetXML.class.php(137): AuthnetXML->process() #1 D:\Quote\getBatchStatisticsRequest.php(60): AuthnetXML->__call('getBatchStatist...', Array) #2 D:\Quote\getBatchStatisticsRequest.php(60): AuthnetXML->getBatchStatisticsRequest(Array) #3 {main}

 

vhullur
Member
1 REPLY 1

Sounds like CURL can't get to the certs. Something along these lines may fix the problem:

http://curl.haxx.se/mail/curlphp-2005-11/0038.html

 

Simplest solution is of course to set CURLOPT_SSL_VERIFYPEER to FALSE in the portion of the library that actually sends the requests (look in /lib/shared/AuthorizeNetRequest.php in your PHP SDK). More complicated but definitive solution is to figure out why CURL can't get to the certs.

TJPride
Expert