Page 1 of 1

Authorize.net transaction failure

PostPosted: December 16th, 2011, 11:30 am
by tkoziol
First off, I want to say I love the plugin and the theme and very impressed with the capabilities....but I can't figure out why I can't get authorize.net transactions working.

I have setup a sandbox testing account with authorize.net and have setup s2member to use all of the credentials.

I have also run the tests to make sure my windows box running IIS 6 is working correctly with the php and curl extensions...and it was successful.

"Test succeeded :-) Lookin' good here. Your cURL extension is functioning properly, with SSL enabled too."

However, anytime I try to process a test payment the form acts like it is submitting, then returns with "Error. Please contact Support for assistance."

Looking at the log file, this is what I've found:

Code: Select all
PHP v5.2.4 :: WordPress® v3.2.1 :: s2Member® v111105 :: s2Member® Pro v111105
Memory 24.98 MB :: Real Memory 26.00 MB :: Peak Memory 25.23 MB :: Real Peak Memory 26.00 MB
www.mylifeattendant.com/index.php/signup/gold-membership
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2
-------- Input vars: ( Fri Dec 16, 2011 4:22:14 pm UTC ) --------
array (
  'x_type' => 'AUTH_CAPTURE',
  'x_method' => 'CC',
  'x_email' => 'tom@tom.com',
  'x_first_name' => 'Tom',
  'x_last_name' => 'LastName',
  'x_customer_ip' => '50.77.215.69',
  'x_invoice_num' => 's2-4eeb70360cb32',
  'x_description' => '$687 USD / One Time Fee',
  's2_invoice' => '3',
  's2_custom' => 'www.mylifeattendant.com',
  'x_tax' => '0.00',
  'x_amount' => '687.00',
  'x_card_num' => '***********0002',
  'x_exp_date' => '2012-01',
  'x_card_code' => '5874',
  'x_address' => '123 Main Street',
  'x_city' => 'Grand Rapids',
  'x_state' => 'Michigan',
  'x_country' => 'US',
  'x_zip' => '49503',
  'x_version' => '3.1',
  'x_login' => '48FqX7dX',
  'x_tran_key' => '3S3W7Df45a2w3Az6',
  'x_delim_data' => 'true',
  'x_delim_char' => ',',
  'x_encap_char' => '"',
)
-------- Output string/vars: ( Fri Dec 16, 2011 4:22:14 pm UTC ) --------

array (
  'response_code' => NULL,
  'response_subcode' => NULL,
  'response_reason_code' => NULL,
  'response_reason_text' => NULL,
  'authorization_code' => NULL,
  'avs_response' => NULL,
  'transaction_id' => NULL,
  'invoice_number' => NULL,
  'description' => NULL,
  'amount' => NULL,
  'method' => NULL,
  'transaction_type' => NULL,
  'customer_id' => NULL,
  'first_name' => NULL,
  'last_name' => NULL,
  'company' => NULL,
  'address' => NULL,
  'city' => NULL,
  'state' => NULL,
  'zipcode' => NULL,
  'country' => NULL,
  'phone' => NULL,
  'fax' => NULL,
  'email' => NULL,
  'ship_to_first_name' => NULL,
  'ship_to_last_name' => NULL,
  'ship_to_company' => NULL,
  'ship_to_address' => NULL,
  'ship_to_city' => NULL,
  'ship_to_state' => NULL,
  'ship_to_zipcode' => NULL,
  'ship_to_country' => NULL,
  'tax' => NULL,
  'duty' => NULL,
  'freight' => NULL,
  'tax_exempt' => NULL,
  'po_number' => NULL,
  'md5_hash' => NULL,
  'card_code_response' => NULL,
  'cavv_response' => NULL,
  'card_number' => NULL,
  'card_type' => NULL,
  'split_tender_id' => NULL,
  'requested_amount' => NULL,
  'balance_on_card' => NULL,
  '__error' => 'Error. Please contact Support for assistance.',
)


It appears S2member isn't actually passing any information on to Authorize.net. Any thought would be extremely helpful!

Re: Authorize.net transaction failure

PostPosted: December 16th, 2011, 11:37 am
by colinp386
You say "a sandbox testing account with authorize.net"

In this case surely you don't expect it to work right?
Its a while since I used the authorize test gateway, but if it is a test gateway it will not process the payment, so perhaps it's working correctly?

Re: Authorize.net transaction failure

PostPosted: December 16th, 2011, 12:29 pm
by tkoziol
Well I wouldn't really understand the purpose of a testing account if I couldn't attempt to post a transaction successfully and securely to the authorize.net testing account...

Does anyone have thoughts on what may be going on and how the testing should work?

Re: Authorize.net transaction failure

PostPosted: December 19th, 2011, 4:03 am
by Cristián Lávaque
I can't really say, but I'm emailing Jason to look at your log file.

What screen do you get after checking out?

Could you try updating your s2Member to the latest version 111206 and try again, please?

And thanks for the kudos!

Re: Authorize.net transaction failure

PostPosted: December 19th, 2011, 8:04 am
by tkoziol
After submitting the form it simply returns to the black form with a warning box at the top that says "Error. Please contact Support for assistance."

No other indication of what went wrong, which is why I pulled the log files. I will upgrade to the newest version shortly and give that a try and let you know. Thanks!

Re: Authorize.net transaction failure

PostPosted: December 19th, 2011, 1:01 pm
by Jason Caldwell
An output string with nothing but NULL values...
Code: Select all
-------- Output string/vars: ( Fri Dec 16, 2011 4:22:14 pm UTC ) --------

array (
  'response_code' => NULL,
  'response_subcode' => NULL,
  'response_reason_code' => NULL,
  'response_reason_text' => NULL,
  'authorization_code' => NULL,
  'avs_response' => NULL,
  'transaction_id' => NULL,
  'invoice_number' => NULL,
This indicates that s2Member is attempting to communicate with the Authorize.Net API, but the connection returned nothing but NULL values. This could be caused by several things.

Here is a checklist that I would follow.

1. Do you have the latest version of s2Member Pro?
( at this time, the latest version is s2Member & s2Member Pro v111216 )

2. Do you have the latest version of WordPress?
I recommend WordPress v3.3, as this release corrected an issue in the WP_Http class that will resolve some issues across different platforms, such as Windows IIS.

3. Is your server able to communicate via cURL properly, over the HTTPS protocol? You indicated it was. However, on a Windows platform, s2Member v111105 would automatically disable the cURL transfer protocol within WordPress, to avoid common pitfalls associated with cURL on Windows. More recent versions of PHP have resolved these pitfalls, and s2Member v111206+ was updated accordingly.

In short, please try the latest copy of s2Member and s2Member Pro v111216+.
If that does'nt resolve this, try upgrading to WordPress v3.3 as well.

Re: Authorize.net transaction failure

PostPosted: December 19th, 2011, 3:39 pm
by tkoziol
Well, I must say good timing on the update because that solved my problem! I didn't realize cURL was automatically disabled by s2member and was confident we wouldn't have problems as we'd done auth.net transactions from this same server before using cURL.

Anyway, Thanks for the help and responses! Much appreciated!