Forums / Built-in Shipping and Payment Modules / Help on Hash Warning in AuthorizeNet_Aim with SecurePay

Help on Hash Warning in AuthorizeNet_Aim with SecurePay

Locked

Views: 8,298

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
13 Feb 2008, 6:17 PM
#1
shelby89 avatar

shelby89

New Zenner

Join Date:
Dec 2007
Posts:
26
Plugin Contributions:
0

Help on Hash Warning in AuthorizeNet_Aim with SecurePay

I am running 1.38a and using AuthorizeNet_aim with SecurePay. I don't have an AuthorizeNet account, but using the translator for AuthorizeNet_Aim. I spoke with SecurePay and they said they don't use or know anything about using MD5 Hash. Please Help!!
Below iare the 2 warning message received:

WARNING: Security hash problem. Please contact store-owner immediately. Your order has not been fully authorized

Your credit card could not be authorized for this reason. Please correct the information and try again or contact us for further assistance.

I have searched the forum and could not find anything related to my problem, since I am not using AuthorizeNet. The transaction goes to SecurePay but I get the error messages. I will add the debug log:

Response Code: 2||2|This transaction has been declined.|NOT
APPROVED|E|-88|1-XtERpA|Test+Product+%28qty%3A+1%29+|5.00|CC|AUTH_ONLY|4|shawn|sheldon||830+North+Union+Blvd|Colorado+Springs|Colorado|80909|United+States|719+456-1292||usagreco%40yahoo.com|shawn|sheldon||830+North+Union+Blvd|Colorado+Springs|Colorado+Springs|Colorado|80909|0.00|0|0.00|FALSE|Feb-13-2008+11%3A59%3A08||.
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_ONLY
[x_method] => CC
[x_amount] => 5.00
[x_currency_code] => USD
[x_card_num] => XXXXXXXXXXXXXXXX6877
[x_exp_date] => 0211
[x_card_code] =>
[x_email_customer] => TRUE
[x_email_merchant] => TRUE
[x_cust_id] => 4
[x_invoice_num] => 1-XtERpA
[x_first_name] => shawn
[x_last_name] => sheldon
[x_company] =>
[x_address] => 830 North Union Blvd
[x_city] => Colorado Springs
[x_state] => Colorado
[x_zip] => 80909
[x_country] => United States
[x_phone] => 719 456-1292
[x_email] => [email protected]
[x_ship_to_first_name] => shawn
[x_ship_to_last_name] => sheldon
[x_ship_to_address] => 830 North Union Blvd
[x_ship_to_city] => Colorado Springs
[x_ship_to_state] => Colorado
[x_ship_to_zip] => 80909
[x_ship_to_country] => United States
[x_description] => Test Product (qty: 1)
[x_recurring_billing] => NO
[x_customer_ip] => 209.60.77.2
[x_po_num] => Feb-13-2008 11:59:08
[x_freight] => 0.00
[x_tax_exempt] => FALSE
[x_tax] => 0.00
[x_duty] => 0
[Date] => February 13, 2008, 11:59 am
[IP] => 209.60.77.2
[Session] => a84ff84cfb1afe29c76083503873c52f
[url] => https://www.securepay.com/AuthSpayAdapter/process.aspx
)

Results Received back from Authorizenet: Array
(
[0] => Response from gateway
[1] => 2||2|This transaction has been declined.|NOT
APPROVED|E|-88|1-XtERpA|Test+Product+%28qty%3A+1%29+|5.00|CC|AUTH_ONLY|4|shawn|sheldon||830+North+Union+Blvd|Colorado+Springs|Colorado|80909|United+States|719+456-1292||usagreco%40yahoo.com|shawn|sheldon||830+North+Union+Blvd|Colorado+Springs|Colorado+Springs|Colorado|80909|0.00|0|0.00|FALSE|Feb-13-2008+11%3A59%3A08||
[Expected-MD5-Hash] => 39AF4FCE4D384976CEC8A7AED05727AA
[HashMatchStatus] => FAIL
)

CURL communication info: Array
(
[url] => https://www.securepay.com/AuthSpayAdapter/process.aspx
[content_type] => text/html; charset=utf-8
[http_code] => 200
[header_size] => 283
[request_size] => 1171
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 3.013973
[namelookup_time] => 0.052237
[connect_time] => 0.10247
[pretransfer_time] => 0.218944
[size_upload] => 0
[size_download] => 365
[speed_download] => 121
[speed_upload] => 0
[download_content_length] => 365
[upload_content_length] => 0
[starttransfer_time] => 3.013851
[redirect_time] => 0
)

RAW data received:
2||2|This transaction has been declined.|NOT
APPROVED|E|-88|1-XtERpA|Test+Product+%28qty%3A+1%29+|5.00|CC|AUTH_ONLY|4|shawn|sheldon||830+North+Union+Blvd|Colorado+Springs|Colorado|80909|United+States|719+456-1292||usagreco%40yahoo.com|shawn|sheldon||830+North+Union+Blvd|Colorado+Springs|Colorado+Springs|Colorado|80909|0.00|0|0.00|FALSE|Feb-13-2008+11%3A59%3A08|||

Please Help.

Thanks, Shawn

13 Feb 2008, 6:21 PM
#2
shelby89 avatar

shelby89

New Zenner

Join Date:
Dec 2007
Posts:
26
Plugin Contributions:
0

Re: Help on Hash Warning in AuthorizeNet_Aim with SecurePay

I forgot to say that I don't have a drop down list for credit card selection. I spoke with securepay and they said it's turned on.

Thanks, Shawn

16 Feb 2008, 12:32 AM
#3
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Help on Hash Warning in AuthorizeNet_Aim with SecurePay

If you are using securepay and they do not have a drop down list in your transaction card processor form then its not turned on.

However even though you have securepay, why are you using authorize for the transaction.

The hash does not apply to securepay if you use the authnet translator provided by securepay.

Are you using the authnet module straight to securepay? Without modification?

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

24 Feb 2008, 5:13 PM
#4
shelby89 avatar

shelby89

New Zenner

Join Date:
Dec 2007
Posts:
26
Plugin Contributions:
0

Re: Help on Hash Warning in AuthorizeNet_Aim with SecurePay

knuckle-101:

If you are using securepay and they do not have a drop down list in your transaction card processor form then its not turned on.

However even though you have securepay, why are you using authorize for the transaction.

The hash does not apply to securepay if you use the authnet translator provided by securepay.

Are you using the authnet module straight to securepay? Without modification?

I am using the authorizenet_aim mod, should I use the securepay mod? I have made the modifications listed in the forum which are the same as securepay's listed on the website.

I was told by securepay that the mod was not supported and authorizenet_aim was. They also told me that the drop down list in the transaction card processor form was turned on, I will contact them again about that.

I need all the help I can get, please.

Should I use the securepay mod?

Thanks, Shawn

24 Feb 2008, 6:38 PM
#5
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Help on Hash Warning in AuthorizeNet_Aim with SecurePay

Follow this post it could be of some help to you http://www.zen-cart.com/forum/showpost.php?p=397270&postcount=17

I showed you how to use the authnet translator that securepay offers.

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

26 Feb 2008, 2:34 PM
#6
shelby89 avatar

shelby89

New Zenner

Join Date:
Dec 2007
Posts:
26
Plugin Contributions:
0

Re: Help on Hash Warning in AuthorizeNet_Aim with SecurePay

knuckle-101:

Follow this post it could be of some help to you http://www.zen-cart.com/forum/showpost.php?p=397270&postcount=17

I showed you how to use the authnet translator that securepay offers.

Yes, I have already configured the files. I have uninstalled the mod twice but I still receive the error message"hash security problem"
From Debug:
Expected-MD5-Hash] => 39AF4FCE4D384976CEC8A7AED05727AA
[HashMatchStatus] => FAIL

Here is what my authorizenet_aim.php looks like:
// Populate an array that contains all of the data to be sent to Authorize.net
$submit_data = array_merge(array(
'x_login' => trim(MODULE_PAYMENT_AUTHORIZENET_AIM_LOGIN),
'x_tran_key' => trim(MODULE_PAYMENT_AUTHORIZENET_AIM_TXNKEY),
'x_relay_response' => 'FALSE',
'x_delim_data' => 'TRUE',
'x_delim_char' => $this->delimiter, // The default delimiter is a comma
'x_encap_char' => $this->encapChar, // The divider to encapsulate response fields
'x_version' => '3.1', // 3.1 is required to use CVV codes
), $submit_data);

if(MODULE_PAYMENT_AUTHORIZENET_AIM_TESTMODE == 'Test') {
  $submit_data['x_test_request'] = 'TRUE';
}

// set URL
$url = 'https://www.securepay.com/AuthSpayAdapter/process.aspx';
if (defined('AUTHORIZENET_DEVELOPER_MODE')) {
  if (AUTHORIZENET_DEVELOPER_MODE == 'on') $url = 'https://test.authorize.net/gateway/transact.dll';
  if (AUTHORIZENET_DEVELOPER_MODE == 'echo' || MODULE_PAYMENT_AUTHORIZENET_AIM_DEBUGGING == 'echo') $url = 'https://developer.authorize.net/param_dump.asp';
  if (AUTHORIZENET_DEVELOPER_MODE == 'certify') $url = 'https://certification.authorize.net/gateway/transact.dll';
}
if (MODULE_PAYMENT_AUTHORIZENET_AIM_DEBUGGING == 'echo') $url = 'https://developer.authorize.net/param_dump.asp';

// concatenate the submission data into $data variable after sanitizing to protect delimiters
$data = '';
while(list($key, $value) = each($submit_data)) {
  if ($key != 'x_delim_char' && $key != 'x_encap_char') {
    $value = str_replace(array($this->delimiter, $this->encapChar,'"',"'",'&','&', '='), '', $value);
  }
  $data .= $key . '=' . urlencode($value) . '&';
}
// Remove the last "&" from the string
$data = substr($data, 0, -1);


// prepare a copy of submitted data for error-reporting purposes
$this->reportable_submit_data = $submit_data;
$this->reportable_submit_data['x_login'] = '*******';
$this->reportable_submit_data['x_tran_key'] = '*******';
if (isset($this->reportable_submit_data['x_card_num'])) $this->reportable_submit_data['x_card_num'] = str_repeat('X', strlen($this->reportable_submit_data['x_card_num'] - 4)) . substr($this->reportable_submit_data['x_card_num'], -4);
if (isset($this->reportable_submit_data['x_card_code'])) $this->reportable_submit_data['x_card_code'] = '****';
$this->reportable_submit_data['url'] = $url;

this is the section that connects to securepay. If you want to see the whole file and will paste it as well.

Thanks, Shawn

28 Feb 2008, 7:15 AM
#7
shelby89 avatar

shelby89

New Zenner

Join Date:
Dec 2007
Posts:
26
Plugin Contributions:
0

Re: Help on Hash Warning in AuthorizeNet_Aim with SecurePay

After racking my brain trying to figure out the MD5 hash error I installed the authorizenet_aim php from ZC1.3.7 without the MD5 hash and it seems to be working fine.

I tried the secure pay mod 2.1.1 but had problems with that as well.

Thanks, Shawn

3 Mar 2008, 6:51 AM
#8
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Help on Hash Warning in AuthorizeNet_Aim with SecurePay

Try commenting out the hash were zencart will by pass this feature, this will need to be done through all files that call for the hash to be checked.

As always you may need to hire a developer to successfully do this as your site may be different from others depending on what you did.

******* solicitation removed by moderator ******

other wise you need to edit the authorizenet files regardless to comment out the hash commands

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

30 Oct 2009, 4:35 AM
#9
usr226197 avatar

usr226197

New Zenner

Join Date:
Sep 2006
Posts:
7
Plugin Contributions:
0

Re: Help on Hash Warning in AuthorizeNet_Aim with SecurePay

I too was having problems with the hash code. My client runs payments through "NaviGate" which is a sister product of authorize.net that is compatible with the authorizenet_AIM payment module.

After reading all the posts I could find and trying several things, this was what finally worked for me as well:

shelby89:

After racking my brain trying to figure out the MD5 hash error I installed the authorizenet_aim php from ZC1.3.7 without the MD5 hash and it seems to be working fine.