Authorize.net Plugin Error Message on Successful Transaction

melvins138 25 Feb, 2015
I have a form set up to handle credit cards. I purchased the Authorize.net plugin, and it works great.

My problem is that I have email messages set up if the card is successful, declined, errors out or on hold.

All the error emails work as needed, but the success email comes through when it's successful, too, but I also get an error email as well.

So when someone puts their credit card information in, clicks submit, it is processes successfully, two emails are generated one for the success and one for error, even though the transaction was successful.

Any suggestions as to why this happens?

Thanks,
Melvins
GreyHead 25 Feb, 2015
Hi Melvins,

How do you have the actions set up?

Bob
melvins138 25 Feb, 2015
Hi Bob,

Attached is a screenshot of the set up. Please let me know if you need any additional information.

Authorize.net Plugin Error Message on Successful Transaction image 1

The emails for the decline, error, and hold are all the same, except the subject reflects the reason of error.

Thanks,
Melvins
GreyHead 03 Mar, 2015
Hi Melvins,

The setup in the image looks OK and I had a quick look at the code - as far as I can see that will only fire one event.

I wonder if you are getting two responses from Anet for some reason a 'success' and a 'fail' - that might explain the two emails. Is there any info in the more detailed response data that gives a clue?

Bob
melvins138 03 Mar, 2015
Thanks Bob,

By "more detailed response data" do you mean the debug within ChronoForms or some details within the Anet itself?

Thanks,
Melvins
GreyHead 03 Mar, 2015
Hi Melvins,

ANet returns a chunk of data like this
  /* Anet returns
  [approved] => 1
  [declined] =>
  [error] =>
  [held] =>
  [response_code] => 1
  [response_subcode] => 1
  [response_reason_code] => 1
  [response_reason_text] => This transaction has been approved.
  [authorization_code] => 7YRDVH
  [avs_response] => Y
  [transaction_id] => 2227273341
. . .
Does the plug-in let you see or log that?

Bob
melvins138 05 Mar, 2015
Hi Bob,

Attached is the whole debug of the successful form submission with ANet plugin. Sorry for the length, but I wanted you to see all of it.

When the card is declined or errors, I get the proper "Thank You Message" and the debug reads properly.

When the card transaction is successful, it generates the attached debug data array, then shows the success "Thank You Message" and a Debug Data with the generated success email; plus the Error generated email message. Then the Error "Thank You Message" and then another debug data showing the success generated email message again and the error generated email message. In that order.

I'm confused.

Here is the complete debug array:

Authorize.net Plugin Error Message on Successful Transaction image 2
This topic is locked and no more replies can be posted.