Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Cant get Authorize.net AIM Module to communicate

Cant get Authorize.net AIM Module to communicate

Locked

Views: 3,301

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
18 Sep 2007, 4:17 PM
#1
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Cant get Authorize.net AIM Module to communicate

I just installed an ssl cert. (Yes I know I was dumb for not having one before)

I set the ssl path in includes->configure to true

my Authorize.net SIM - is working fine with the ssl.

However when I switch to AIM i get the following error when someone tries to checkout:

Step 2 of 3 - Payment Information
Error Communications Error - Please notify webmaster. - Your credit card could not be authorized for this reason. Please correct any information and try again or contact us for further assistance.

Am I supposed to change it anywhere else?

18 Sep 2007, 5:15 PM
#3
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Cant get Authorize.net AIM Module to communicate

CURL Test Page
This page is intended for testing CURL behaviour. You should be accessing this page via CURLTEST.PHP running on YOUR server.

You submitted the following fields and data:
Array
(
[field1] => This is a test
[statuskey] => ready
)
Data validation
Good
Other Info
Your server IP address is: 216.246.57.162.
user-agent: unknown.
Copyright © 2003 - 2007 Zen Ventures, LLC - Powered by Zen Cart™
Array
(
[url] => "http://www.zen-cart.com/testcurl.php"
[content_type] => text/html
[http_code] => 200
[header_size] => 125
[request_size] => 174
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.210127
[namelookup_time] => 0.124676
[connect_time] => 0.165261
[pretransfer_time] => 0.165447
[size_upload] => 0
[size_download] => 2142
[speed_download] => 10193
[speed_upload] => 0
[download_content_length] => 0
[upload_content_length] => 0
[starttransfer_time] => 0.209887
[redirect_time] => 0
)

18 Sep 2007, 5:34 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Cant get Authorize.net AIM Module to communicate

Okay, and if you add &SSL=1 to the end of the URL and try again, what happens?

Edit: oops ... it should be** ?ssl=1**

18 Sep 2007, 6:48 PM
#6
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Cant get Authorize.net AIM Module to communicate

Also, My site emailed me this:

AuthorizenetAIM Debug Data

Sep-18-2007 11:05:43

Comm results: Couldn't resolve proxy '/usr/bin/curl'

Response Code: Array
(
[0] =>
)
Array
(
[0] =>
)
Sending to Authorizenet: Array
(
[x_login] => *******
[x_tran_key] => *******
[x_relay_response] => FALSE
[x_delim_data] => TRUE
[x_version] => 3.1
[x_type] => AUTH_CAPTURE
[x_method] => CC
[x_amount] => 0.01
[x_card_num] => *******
[x_exp_date] =>
[x_card_code] => *******
[x_email_customer] => FALSE
[x_email_merchant] => TRUE
[x_cust_id] => 188
[x_invoice_num] => 1422
[x_first_name] => ****
[x_last_name] => ****
[x_company] =>
[x_address] => ** *******
[x_city] => *** *****
[x_state] => *** ******
[x_zip] => *****
[x_country] => United States
[x_phone] => *** *** ****
[x_email] => ******************
[x_ship_to_first_name] => *******
[x_ship_to_last_name] => *****
[x_ship_to_address] => **** ****** ****
[x_ship_to_city] => *** *****
[x_ship_to_state] => *** *****
[x_ship_to_zip] => ****
[x_ship_to_country] => United States
[x_description] => 1 buck(qty: 1)
[Date] => September 18, 2007, 11:05 am
[IP] => 69.248.128.224
[Session] => 9f668a57e637865dc6baaa6c906272db
[url] => https://secure.authorize.net/gateway/transact.dll
)

Result: Array
(
[0] =>
)

18 Sep 2007, 7:56 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: Cant get Authorize.net AIM Module to communicate

I made a typo ... should have been ?ssl=1 like this:
http://www.nothingbutcostumes.com/curltest.php?ssl=1

Who's your hosting company ?
What do you have configured in Admin->Configuration->My Store for these:

  • CURL Proxy Status
  • CURL Proxy Address

If you're not using GoDaddy hosting and your host doesn't require use of a proxy, turn it off.

18 Sep 2007, 8:19 PM
#8
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Cant get Authorize.net AIM Module to communicate

http://www.nothingbutcostumes.com/curltest.php?ssl=1:

CURL Test Page
This page is intended for testing CURL behaviour. You should be accessing this page via CURLTEST.PHP running on YOUR server.

You submitted the following fields and data:

Array
(
[field1] => This is a test
[statuskey] => ready
)

Data validation
Good
Other Info
Your server IP address is: 216.246.57.162.
user-agent: unknown.

Who's your hosting company ?
Wingsix

What do you have configured in Admin->Configuration->My Store for these:

  • CURL Proxy Status
  • CURL Proxy Address
  • CURL Proxy Status: true
  • CURL Proxy Address: /usr/bin/curl

If you're not using GoDaddy hosting and your host doesn't require use of a proxy, turn it off.

The SSL Certificate is from godaddy.

18 Sep 2007, 8:28 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: Cant get Authorize.net AIM Module to communicate

milobloom:

  • CURL Proxy Status: true
  • CURL Proxy Address: /usr/bin/curlTry turning it off.
    The Proxy Address you have there is definitely invalid. It needs to be a URL, not a file/path.
    How did it get set that way in the first place?

milobloom:

The SSL Certificate is from godaddy.With respect to CURL communications vs proxy, it doesn't matter "who" issued the SSL certificate.

18 Sep 2007, 8:32 PM
#10
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Cant get Authorize.net AIM Module to communicate

I have no idea how that got there like that.

What file am I looking for and what would the path look like?

18 Sep 2007, 8:34 PM
#11
drbyte avatar

drbyte

Sensei

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

Re: Cant get Authorize.net AIM Module to communicate

Just change the CURL Proxy Status setting to "false".

18 Sep 2007, 8:59 PM
#12
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Cant get Authorize.net AIM Module to communicate

Oh, I think i have to get that from my hosting company... Never mind.

Thanks for all your help.

10 Nov 2007, 12:10 AM
#13
bgm avatar

bgm

New Zenner

Join Date:
Nov 2007
Posts:
3
Plugin Contributions:
0

Re: Cant get Authorize.net AIM Module to communicate

Hi I am having similar problems. The following message was sent to authorize.net and I got no help from them. Could someone please help?

I am using zen cart and when I get to the payment confirmation page at the top I get
an error message that says Security hash problem. When I check the log info that is
emailed to me here are the details:

Nov-06-2007 01:15:04

Comm results: 1 libcurl was built with SSL disabled, https: not supported!

Response Code: .
Response Text:

Sending to Authorizenet: Array
(
[x_login] => *******
[x_tran_key] => *******
[x_relay_response] => FALSE
[x_delim_data] => TRUE
[x_delim_char] => |
[x_encap_char] => *
[x_version] => 3.1
[x_type] => AUTH_CAPTURE
[x_method] => CC
[x_amount] => 27.92
[x_currency_code] => USD
[x_card_num] => XXXXXXXXXXXXXXXX4801
[x_exp_date] => 0808
[x_card_code] => ****
[x_email_customer] => FALSE
[x_email_merchant] => FALSE
[x_cust_id] => 1
[x_invoice_num] => 1-oWPMdn
[x_first_name] =>
[x_last_name] =>
[x_company] =>
[x_address] =>
[x_city] =>
[x_state] =>
[x_zip] =>
[x_country] => United States
[x_phone] =>
[x_email] =>
[x_ship_to_first_name] =>
[x_ship_to_last_name] =>
[x_ship_to_address] =>
[x_ship_to_city] =>
[x_ship_to_state] =>
[x_ship_to_zip] =>
[x_ship_to_country] => United States
[x_description] => All in 1 Media Card R/W USB (qty: 1)
[x_recurring_billing] => NO
[x_customer_ip] => 4.245.11.87
[x_po_num] => Nov-06-2007 01:15:04
[x_freight] => 8.37
[x_tax_exempt] => FALSE
[x_tax] => 0.00
[x_duty] => 0
[Date] => November 6, 2007, 1:15 pm
[IP] => 4.245.11.87
[Session] => 3db565ea84bdf0629962f52120732c0a
[url] => https://secure.authorize.net/gateway/transact.dll
)

Results Received back from Authorizenet: Array
(
[0] =>
[Expected-MD5-Hash] => 6F43AFE50DCC51609B73706562CFF404
[HashMatchStatus] => FAIL
)

CURL communication info: Array
(
[url] => https://secure.authorize.net/gateway/transact.dll
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0
[namelookup_time] => 0
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => 0
[upload_content_length] => 0
[starttransfer_time] => 0
[redirect_time] => 0
)

Using CURL Proxy: [proxy.shr.secureserver.net:3128] with Proxy Tunnel: On

RAW data received:

I logged into authorize.net and found a setting for md5-hash and changed it to what
it has listed in the log info but that did not work. What is wrong? What needs to
be changed in order for the payment to go thru?

10 Nov 2007, 12:29 AM
#14
drbyte avatar

drbyte

Sensei

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

Re: Cant get Authorize.net AIM Module to communicate

bgm:

Nov-06-2007 01:15:04

Comm results: 1 **libcurl was built with SSL disabled, https: not supported!**The security hash issue is a secondary problem, and is a result of the real problem: Your server doesn't support SSL via CURL.
Your hosting company will have to fix that for you.

12 Nov 2007, 1:54 AM
#15
bgm avatar

bgm

New Zenner

Join Date:
Nov 2007
Posts:
3
Plugin Contributions:
0

Re: Cant get Authorize.net AIM Module to communicate

I received the following back from my host:

Hello,

We have enabled curl module with ssl support. You can verify it from the phpinfo
page at http://www.bigmicro.net/info.php.

================
curl
cURL support enabled
cURL Information libcurl/7.15.3 OpenSSL/0.9.7a zlib/1.2.3 libidn/0.5.6

but not I get the same error message in the header as before hash security problem, but in the debug log file it now shows up at:

Comm results: couldn't connect to host

Why is that? What is wrong?

12 Nov 2007, 7:28 AM
#16
drbyte avatar

drbyte

Sensei

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

Re: Cant get Authorize.net AIM Module to communicate

bgm:

Using CURL Proxy: [proxy.shr.secureserver.net:3128] with Proxy Tunnel: OnWhy are you using the CURL proxy? If you're not hosted with GoDaddy, you don't likely need it. Turn it off.

Your authnet communication should work fine now, as evidenced here:
http://www.bigmicro.net/curltest.php?authnet=1
(The "merchant login ID is invalid" response comes from authnet, confirming that connection was successful.)