Zen Cart Logo
Forums / Bug Reports / [Done v1.5.4] default Authorizenet.php file does not hash x_currency_code

[Done v1.5.4] default Authorizenet.php file does not hash x_currency_code

Locked

Views: 4,927

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
9 Sep 2014, 3:29 AM
#1
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

[Done v1.5.4] default Authorizenet.php file does not hash x_currency_code

As identified in this thread: http://www.zen-cart.com/showthread.php?214483-Authorize-Net-SIM-Issues

A user of authorize.net (SIM) was receiving an error 99 from Authorize.net when trying to reach the point to obtain credit card information from a customer.

Several different actions were attempted to try to resolve the issue (some that I suggested I admit were outrageous and unlikely to solve the situation, but seemed like could unexpectedly resolve the issue): Verifying the time_zone settings in multiple locations, attempting to adjust the time_zone to an alternate location, and adjusting the PHP check made in set_time_zone.php to name a few.

The two solutions that independently worked were 1) to comment out x_currency_code at lines 343 and 381 of includes/modules/payment/authorizenet.php and 2) the following without the x_currency_code being commented out.

Find line 385 that reads:

$submit_data_security =  $this->InsertFP(MODULE_PAYMENT_AUTHORIZENET_LOGIN,  MODULE_PAYMENT_AUTHORIZENET_TXNKEY,  number_format($order->info['total'], 2), $sequence);

and change to:

$submit_data_security =  $this->InsertFP(MODULE_PAYMENT_AUTHORIZENET_LOGIN,  MODULE_PAYMENT_AUTHORIZENET_TXNKEY,  number_format($order->info['total'], 2), $sequence[B],  $submit_data_core['x_currency_code'][/B]); //mc12345678 hash the  currency_code.

Some things of note, the system on which this was successful may have been unique, but this solution appears to fall in line with the guidance of the following post: https://support.authorize.net/authkb/index?page=content&id=A569&actp=RSS

At last attempt the above site did provide a security warning indicating the certificate was issued by an unknown issuer.

Suggest this solution and issue be reviewed/evaluated for ZC 1.5.3+

15 Sep 2014, 8:17 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.5.4] default Authorizenet.php file does not hash x_currency_code

Acknowledged. Planned for integration into v1.5.4

17 Dec 2014, 11:15 AM
#3
sgreen0314 avatar

sgreen0314

New Zenner

Join Date:
Dec 2014
Location:
Florida
Posts:
1
Plugin Contributions:
0

Re: [Done v1.5.4] default Authorizenet.php file does not hash x_currency_code

DrByte:

Acknowledged. Planned for integration into v1.5.4

Thank you so much! I had the......... (99) This transaction cannot be accepted...... After much troubleshooting this article worked. Once I replaced the code on line 385 the error went away and I am now able to accept the payment in test mode. Thanks