Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Authorize.net + ADC + cURL, stopped working


Guest

Recommended Posts

Well, I had an older version of Authorize.net working perfectly for a few months. It would work no problem (I was directly executing cURL). Now, sometime between oct and nov it stopped work (While my website was not being advertised and thus did not see any traffic)

 

I have tried just about every combination of cURL code to get it working. I suspect the problem is with my host, but they swear nothing has changed.

 

Here is the current cURL code I am using:

 

	// Get a CURL handle
$curl_handle = curl_init ();

// Tell CURL the URL of the CGI
curl_setopt ($curl_handle, CURLOPT_URL, "https://secure.authorize.net/gateway/transact.dll");

// This section sets various options. See http://www.php.net/manual/en/function.curl-setopt.php
// for more details
curl_setopt ($curl_handle, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl_handle, CURLOPT_POST, 1);
curl_setopt ($curl_handle, CURLOPT_POSTFIELDS, $data);

// Perform the POST and get the data returned by the server.
$response = curl_exec ($curl_handle) or die ("There has been an error connecting to Authorize.net.");

// Close the CURL handle
curl_close ($curl_handle);

 

My browser just displays

There has been an error connecting to Authorize.net.
after a very short period of time. I have also tried directly executing cURL. Nothing shows up in the unsettled transactions in Authorize.Net so I dont believe it is connecting at all.

 

My host told me that I could execute it both directly and through PHP, and they directed me towards the PHPinfo site for the server (http://alpha.hosting-dns.net/phpinfo.php) And told me that the cURL versions were: libcurl/7.10.5 zlib/1.1.4.

 

Any suggestions would be greatly appreciated. I've read through just about every 10 page thread about Authorize.net and I just can't seem to find an answer. Thanks so much in advance for your help.

Link to comment
Share on other sites

I found that even in MS1 that there were no modifications necessary. What was necessary to get one working the other day which nad been working, was to generate a new key with authorize.net and then everything started working. This site was the same was as you described, so I would first try that.

Link to comment
Share on other sites

  • 2 weeks later...
try getting another key from authorizenet

Tried that but still same results. :unsure:

 

What codes to I need to add in order to get the true error, instead of the generic message above?

 

Thanks

Link to comment
Share on other sites

Monitoring the firewall connection logs, I can see that it is connecting to 64.94.118.66 (secure.authorize.net) on port 443 when I hit the submit order button. After a few seconds it would jump back to https://www.mystore.com/catalog/checkout_process.php and give me the generic error message, "There has been an error connecting to Authorize.net"

 

What is need to do now is find out what is the exact message that Authorizenet is returning back. :unsure: :unsure: :unsure:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...