Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Problem POSTing payments in AIM module in 1.3.8a (PHP 5.3)

Problem POSTing payments in AIM module in 1.3.8a (PHP 5.3)

Views: 786

Results 1 to 4 of 4
11 Apr 2013, 10:56 PM
#1
openvista avatar

openvista

New Zenner

Join Date:
Sep 2009
Posts:
23
Plugin Contributions:
0

Problem POSTing payments in AIM module in 1.3.8a (PHP 5.3)

So I'm on a development server that's firewalled at the moment from public view. But, essentially, I had to provision a new server for a client so I could begin the transition to 1.5.1 because their old server won't support PHP 5.3. However, this client needs to be able to run their current production version, 1.3.8a, while I am integrating numerous core code changes, including about 20 add-ons -- some of which are custom developed for them, into the new version. That's going to take some time.

In the meantime, I have applied the PHP 5.3 patch (http://www.zen-cart.com/showthread.php?140960-PHP-5-3-Support-for-v1-3-8-a) to the 1.3.8a installation and it everything works...EXCEPT... it appears Authorize.net is not receiving the address and payment information (hashed data?) during the transaction phase of checkout. However, other information like amount and payment method are coming through (see below log output). I've tested CURL and it's working fine (passes the CURL test in the extras folder) and I can see all the address and payment information going out but Authorize.net is missing that information when they POST back to the site. The end result is the transaction is declined (even with known good test credit card numbers in test mode and valid credit card numbers in production mode). Obviously this is because Authorize.net is missing information to process the transaction.

Any help would be appreciated. If it isn't something relatively straightforward, I'll have to delay rollout of the new server until I can upgrade. I'd rather not for reasons too complicated to get into here.

Thanks in advance!

See log output below (from /cache folder):

p.s. the server runs CentOS 6.4, PHP 5.3.23, MySQL 5.1.67, curl and libcurl versions 7.19.7-35.el6 (base repository)

Apr-11-2013 03:02:39

Response Code: 3.
Response Text: This transaction has been declined.

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] => 6.00
[x_currency_code] => USD
[x_card_num] => XXXXXXXXXXXXXXXXXXX0888
[x_exp_date] => 0614
[x_card_code] => ****
[x_email_customer] => FALSE
[x_email_merchant] => FALSE
[x_cust_id] => 3053
[x_invoice_num] => 14728-BNaCiJ
[x_first_name] => John
[x_last_name] => Smith
[x_company] =>
[x_address] => 111 1st St
[x_city] => Oro Valley
[x_state] => Arizona
[x_zip] => 85755
[x_country] => United States
[x_phone] => (602) 555-1212
[x_email] => [email protected]
[x_ship_to_first_name] => John
[x_ship_to_last_name] => Smith
[x_ship_to_address] => 111 1st St
[x_ship_to_city] => Oro Valley
[x_ship_to_state] => Arizona
[x_ship_to_zip] => 85755
[x_ship_to_country] => United States
[x_description] => Bumper Sticker (qty: 1)
[x_recurring_billing] => NO
[x_customer_ip] => 68.100.20.60
[x_po_num] => Apr-11-2013 03:02:38
[x_freight] => 0.00
[x_tax_exempt] => FALSE
[x_tax] => 0.00
[x_duty] => 0
[Date] => April 11, 2013, 3:02 pm
[IP] => 68.100.20.60
[Session] => 5e01l18mc9pm9djdf758lsho83
[url] => https://secure.authorize.net/gateway/transact.dll
)

Results Received back from Authorizenet: Array
(
[0] => Response from gateway
[1] => 3
[2] => 1
[3] => 250
[4] => This transaction has been declined.
[5] =>
[6] => P
[7] => 0
[8] =>
[9] =>
[10] => 6.00
[11] => CC
[12] => auth_capture
[13] =>
[14] =>
[15] =>
[16] =>
[17] =>
[18] =>
[19] =>
[20] =>
[21] =>
[22] =>
[23] =>
[24] =>
[25] =>
[26] =>
[27] =>
[28] =>
[29] =>
[30] =>
[31] =>
[32] =>
[33] =>
[34] =>
[35] =>
[36] =>
[37] =>
[38] => 5A2BBB37E90F17237AEA7FA22356D874
[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] =>
[69] => April 11, 2013, 3:02 pm
[70] => 68.100.20.60
[71] => 5e01l18mc9pm9djdf758lsho83
[Expected-MD5-Hash] => 5A2BBB37E90F17237AEA7FA22356D874
[HashMatchStatus] => PASS
)

CURL communication info: Array
(
[url] => https://secure.authorize.net/gateway/transact.dll
[content_type] => text/html
[http_code] => 200
[header_size] => 288
[request_size] => 173
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.428419
[namelookup_time] => 0.012383
[connect_time] => 0.066563
[pretransfer_time] => 0.299247
[size_upload] => 1034
[size_download] => 365
[speed_download] => 851
[speed_upload] => 2413
[download_content_length] => 365
[upload_content_length] => 1034
[starttransfer_time] => 0.354858
[redirect_time] => 0
[certinfo] => Array
(
)

[redirect_url] => 

)

RAW data received:
3|1|250|This transaction has been declined.||P|0|||6.00|CC|auth_capture||||||||||||||||||||||||||5A2BBB37E90F17237AEA7FA22356D874|||||||||||||||||||||||||||||||April 11, 2013, 3:02 pm|68.100.20.60|5e01l18mc9pm9djdf758lsho83

12 Apr 2013, 12:40 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Problem POSTing payments in AIM module in 1.3.8a (PHP 5.3)

openvista:

Response Code: 3.
Response Text: This transaction has been declined.

[0] => Response from gateway
[1] => 3
[2] => 1
[3] => 250
[4] => This transaction has been declined.
Error #250 means "This transaction was submitted from a blocked IP address."

Contact your Authnet representative to help you sort out that issue.

12 Apr 2013, 1:13 AM
#3
openvista avatar

openvista

New Zenner

Join Date:
Sep 2009
Posts:
23
Plugin Contributions:
0

Re: Problem POSTing payments in AIM module in 1.3.8a (PHP 5.3)

Will do. Thanks DrByte!!

12 Apr 2013, 5:46 PM
#4
openvista avatar

openvista

New Zenner

Join Date:
Sep 2009
Posts:
23
Plugin Contributions:
0

Re: Problem POSTing payments in AIM module in 1.3.8a (PHP 5.3)

Turns out it was the Fraud Detection Suite that was blocking the IP. This is a paid extra feature for Authorize.net accounts. When the "Authorized AIM IP Addresses" tool is enabled, you must explicitly allow an IP address or all POSTs will be rejected from unlisted IPs. You can do so by logging into the Authorize.net web account and entering an IP address in the Fraud Detection Suite > IP Administration area. Just an FYI for those who run into similar problems (this is unrelated to PHP or Zen Cart version).

Thanks again to DrByte for his help.