The authorizenet_aim module is written for the 3.1 Transaction Version mode.
I'm not certain whether having one's account in 3.0 mode will cause a problem or not, as we force communications into the newer 3.1 mode and communicate on that basis. Ideally authorizenet's servers should recognize that and process accordingly.
====================
I've attached an updated version of the v1.3.7 module which incorporates the 'echo' debug option mentioned earlier.
To activate it, you'll need to run the following in the SQLPatch tool:
Code:
UPDATE configuration set configuration_value = 'echo' where configuration_key = 'MODULE_PAYMENT_AUTHORIZENET_AIM_DEBUGGING';
This will dump the submitted data to the screen (according to what authnet's server sees) and will not complete the transaction.
====================
If you set the debug level to 'All' instead of 'echo' in the above SQL statement, you'll get the debug logging to work even for successful transactions.
A successful transaction should look like this:
Code:
Jan-04-2007 04:49:24
=================================
Response Code: 1. (this is $x_response_code)
Details: Array
(
[0] => 1 (this is $response_code)
)
Array
(
[0] => This transaction has been approved. (this is $response_text)
)
Sending to Authorizenet: (this is $reportable_submit_data)
(
[x_login] => *******
[x_tran_key] => *******
[x_relay_response] => FALSE
[x_delim_data] => TRUE
[x_version] => 3.1
[x_type] => AUTH_ONLY
[x_method] => CC
[x_amount] => 1.95
[x_card_num] => *******1324
[x_exp_date] => 0107
[x_card_code] => *******
[x_email_customer] => FALSE
[x_email_merchant] => FALSE
[x_cust_id] => 10
[x_invoice_num] => 88
[x_first_name] => #########
[x_last_name] => #########
[x_company] =>
[x_address] => 45 #########
[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] => 45 #########
[x_ship_to_city] => #########
[x_ship_to_state] => #########
[x_ship_to_zip] => #########
[x_ship_to_country] => United States
[x_description] => Sample of Product Free Shipping Type (qty: 1)
[Date] => January 4, 2007, 4:49 am
[IP] => #########
[Session] => 3aa2d9da26a31db682afe2d13d111ad5
[url] => https://secure.authorize.net/gateway/transact.dll
)
Results Received back from Authorizenet: (this is $response)
(
[0] => 1
[1] => 1
[2] => 1
[3] => This transaction has been approved.
[4] => A43F97
[5] => P
[6] => 0
[7] => 88
[8] => Sample of Product Free Shipping Type (qty: 1)
[9] => 1.95
[10] => CC
[11] => auth_only
[12] => 10
[13] => #########
[14] => #########
[15] =>
[16] => 45 #########
[17] => #########
[18] => #########
[19] => #########
[20] => United States
[21] =>
[22] =>
[23] => #########
[24] => #########
[25] => #########
[26] =>
[27] => 45 #########
[28] => #########
[29] => #########
[30] => #########
[31] => United States
[32] =>
[33] =>
[34] =>
[35] =>
[36] =>
[37] => F6B5AAD927C20AF5CF698D2DF5F57228
[38] =>
[39] =>
[40] =>
[41] =>
[42] =>
[43] =>
[44] =>
[45] =>
[46] =>
[47] =>
[48] =>
[49] =>
[50] =>
[51] =>
[52] =>
[53] =>
[54] =>
[55] =>
[56] =>
[57] =>
[58] =>
[59] =>
[60] =>
[61] =>
[62] =>
[63] =>
[64] =>
[65] =>
[66] =>
[67] =>
[68] => January 4 2007 4:49 am
[69] => #########
[70] => 3aa2d9da26a31db682afe2d13d111ad5
)
CURL communication info: (this is $commInfo)
(
[url] => https://secure.authorize.net/gateway/transact.dll
[content_type] => text/html
[http_code] => 200
[header_size] => 283
[request_size] => 958
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.272523
[namelookup_time] => 0.001023
[connect_time] => 0.051496
[pretransfer_time] => 0.165634
[size_upload] => 0
[size_download] => 437
[speed_download] => 1603
[speed_upload] => 0
[download_content_length] => 437
[upload_content_length] => 0
[starttransfer_time] => 0.272491
[redirect_time] => 0
)
If CURL proxy was used, the proxy details will be listed here too.
NOTE: attached zip removed and replaced by new zip later on in this thread