cancel
Showing results for 
Search instead for 
Did you mean: 

Requesting API getHostedPaymentPageRequest to get Token Failed, now suddenly works again

Since end of last week our system was not able to call the Authorize.net API via https://api.authorize.net/xml/v1/request.api

 

By submitting a XML string <getHostedPaymentPageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">... we retrieve the token and display the hosted payment page to our customers.

 

This request suddenly stopped working last week. Yesterday i was debugging the issue and the only thing the API returned was 'true'. Today is seems to be working fine again.

 

Was there an issue on your side? What's going on?

 

Regards,
Rick

Mullie
Member
2 REPLIES 2

Sorry! Seems the problem is still occuring. Our CURL command gives the following debug output:
* Hostname was NOT found in DNS cache * Trying 64.94.118.84... * Connected to api.authorize.net (64.94.118.84) port 443 (#0) * successfully set certificate verify locations: * CAfile: none CApath: /etc/ssl/certs * SSL certificate problem: self signed certificate in certificate chain * Closing connection 0 !data:1!

Mullie
Member

Issue solved by adding:

 

cd /etc/ssl/certs/
wget http://curl.haxx.se/ca/cacert.pem

 

and adding the following line to my servers php.ini:
curl.cainfo = "/etc/ssl/certs/cacert.pem"

 

Mullie
Member