Reply
Highlighted
Member
Posts: 5
Registered: ‎11-15-2012

I am trying to use the transaction details Report using PHP

[ Edited ]

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}

 

Highlighted
Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: I am trying to use the transaction details Report using PHP

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.