Zen Cart Logo
Forums / Addon Payment Modules / Authorize.net(AIM) Help Needed!

Authorize.net(AIM) Help Needed!

Locked

Views: 3,190

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
22 Sep 2006, 2:22 PM
#1
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Authorize.net(AIM) Help Needed!

I am running into the same issue with GoDaddy and authorize.net aim. The error message I keep getting now is "lost network connection." (NSURLErrorDomain:-1005). I am running the latest version of zenCart. This is what I have in my authizenet_aim.php file:

if (CURL_PROXY_REQUIRED == 'True') {

  curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, true);

  curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);

  curl_setopt ($ch, CURLOPT_PROXY, '64.202.165.130:3128');

}



$authorize = curl_exec($ch);

curl_close ($ch);

Any ideas as to what the problem might be?

22 Sep 2006, 5:26 PM
#2
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: Authorize.net(AIM) Help Needed!

I have searched the threads/FAQ's, but still can not find an answer to this dilemna:

I get all the way through to step 3 "order confirmation" page and then it send me back to step 2 with the following message in a marroon box:
"Your credit card could not be authorized for this reason. Please correct any information and try again or contact us for further assistance."

ZenCart is in Test Mode: Authorize.net is in Test Mode
My hosting is through GoDaddy and I have made the necessary adjustments to my authorizenet_aim.php code.
I am typing in the test cc #, a future date in the card exp. field, and three random numbers in the CVV field.

22 Sep 2006, 5:56 PM
#3
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: Authorize.net(AIM) Help Needed!

here's a copy of my authorizenet_aim.php code:

// The commented line below is an alternate connection method

//exec("/usr/bin/curl -d \"$data\" https://secure.authorize.net/gateway/transact.dll", $response);



$url = 'https://secure.authorize.net/gateway/transact.dll';



$ch = curl_init();

curl_setopt($ch, CURLOPT_URL,$url);

curl_setopt($ch, CURLOPT_VERBOSE, 0);

curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);


if (CURL_PROXY_REQUIRED == 'True') {

  curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, true);

  curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);

  curl_setopt ($ch, CURLOPT_PROXY, '64.202.165.130:3128');
  
  curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
  
}



//$authorize = curl_exec($ch);

//curl_close ($ch);



$response = split('\,', $authorize);



$response_code = explode(',', $response[0]);

$response_text = explode(',', $response[3]);

$transaction_id = explode(',', $response[6]);

$authorization_type = explode(',', $response[11]);

$auth_code = explode(',', $response[4]);

$this->auth_code = $auth_code[0];

$this->transaction_id = $transaction_id[0];

Any help with this would be greatly appreciated!

22 Sep 2006, 5:58 PM
#4
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: Authorize.net(AIM) Help Needed!

Authorize.net requires a pass via SSL - is your checkout secure ?

22 Sep 2006, 6:02 PM
#5
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: Authorize.net(AIM) Help Needed!

Hi Tina S.

I have an SSL cert activated through my host.

22 Sep 2006, 7:52 PM
#6
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: Authorize.net(AIM) Help Needed!

How about the cards accepted - have you checked to be sure that the cards accepted match to the cart you are using ?

And also the CCV - if your authorize.net account doesn't require it you should be using the Authorize.net module not the (aim) module.

25 Sep 2006, 7:15 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Authorize.net(AIM) Help Needed!

which hosting plan do you have with GoDaddy?

25 Sep 2006, 12:59 PM
#8
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: Authorize.net(AIM) Help Needed!

Dr. Byte,

I have the Premium Hosting (Linux w/PHP, PERL) plan with GoDaddy.

25 Sep 2006, 1:10 PM
#9
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: Authorize.net(AIM) Help Needed!

in my admin =>modules=> payment section, im getting the following errors at the top:

Warning: main(/home/content/s/t/u/"mypage"/html/"mypage"_0905/store/zen-cart-090706/includes/languages/english/modules/payment/configure.php): failed to open stream: No such file or directory in /home/content/s/t/u/"mypage"/html/"mypage"_0905/store/zen-cart-090706/admin/modules.php on line 174

Warning: main(/home/content/s/t/u/"mypage"/html/"mypage"_0905/store/zen-cart-090706/includes/languages/english/modules/payment/configure.php): failed to open stream: No such file or directory in /home/content/s/t/u/"mypage"/html/"mypage"_0905/store/zen-cart-090706/admin/modules.php on line 174

Warning: main(): Failed opening '/home/content/s/t/u/"mypage"/html/"mypage"_0905/store/zen-cart-090706/includes/languages/english/modules/payment/configure.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/s/t/u/"mypage"/html/"mypage"_0905/store/zen-cart-090706/admin/modules.php on line 174

would this have anything to do with my checkout problem?

25 Sep 2006, 2:18 PM
#10
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Authorize.net(AIM) Help Needed!

well, this would most likely be because there is no file there, however there isnt supposed to be one there,

can you list what files you have in
includes/modules/payment/

25 Sep 2006, 2:25 PM
#11
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: Authorize.net(AIM) Help Needed!

authnet_aim_old (folder - to save original authnet_aim.php file)
authorizenet_aim.php
authorizenet.php
cc.php
cod.php
configure.php
freecharger.php
moneyorder.php
paypal (folder)
paypal.php

25 Sep 2006, 2:39 PM
#12
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: Authorize.net(AIM) Help Needed!

Premium Hosting (Linux _ PHP, PERL)

25 Sep 2006, 3:19 PM
#13
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Authorize.net(AIM) Help Needed!

can you paste this file here,
without any of the passwords etc

25 Sep 2006, 3:30 PM
#14
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: Authorize.net(AIM) Help Needed!

Lawbird123:

in my admin =>modules=> payment section, im getting the following errors at the top:

Warning: main(/home/content/s/t/u/"mypage"/html/"mypage"_0905/store/zen-cart-090706/includes/languages/english/modules/payment/configure.php): failed to open stream: No such file or directory in /home/content/s/t/u/"mypage"/html/"mypage"_0905/store/zen-cart-090706/admin/modules.php on line 174

Warning: main(/home/content/s/t/u/"mypage"/html/"mypage"_0905/store/zen-cart-090706/includes/languages/english/modules/payment/configure.php): failed to open stream: No such file or directory in /home/content/s/t/u/"mypage"/html/"mypage"_0905/store/zen-cart-090706/admin/modules.php on line 174

Warning: main(): Failed opening '/home/content/s/t/u/"mypage"/html/"mypage"_0905/store/zen-cart-090706/includes/languages/english/modules/payment/configure.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/s/t/u/"mypage"/html/"mypage"_0905/store/zen-cart-090706/admin/modules.php on line 174

This problem was fixed. I accidentally saved a copy of one of my configure files to the wrong dir.