If this is your first visit, check our documentation. To post, register or login.
Forums / Built-in Shipping and Payment Modules / Suddenly getting multiple submissions issue to Authorize.net AIM

Suddenly getting multiple submissions issue to Authorize.net AIM

Started by daedylus on 12 Apr 2012, 6:37 PM · Views: 1,075

Results 1 to 5 of 5
12 Apr 2012, 6:37 PM
#1
daedylus avatar

daedylus

New Zenner

Join Date:
Jan 2011
Posts:
8
Plugin Contributions:
0

Suddenly getting multiple submissions issue to Authorize.net AIM

Client is running v1.3.7 of Zen Cart (yep, I know that's old and should be upgraded). Since we've taken on this project, we've added the Edit Order and Login as Customer modules (may not be relevant for this issue, but at least wanted to bring it up).

The site had been running smoothly for quite some time, but within the last 24 hours, about 90% of orders cannot be processed. Upon trying to confirm their order, customers are brought back to the payment page with an error stating "The credit card was declined for the following reasons", but the message does not include why.

I've turned on debugging within the AIM module and have noticed TWO logs being created per order. The first log message says the order was approved:

[0] => 1|1|1|This transaction has been approved.

The second log message though says the following:

[0] => 3|1|11|A duplicate transaction has been submitted.

My question is, why is Zen Cart submitting this transaction twice to Authorize.net? Authorize.net is handling this correctly as they get the first transaction and send an approve message, and then get the second transaction and send the duplicate message. However, Zen Cart sees the duplicate message and thus does not allow the order to go through on the site.

I've searched for the forums for similar issues, such as this one:
http://www.zen-cart.com/forum/showthread.php?t=187615 , and the only comment appears to be to upgrade. Is there no fix for multiple submissions other than to upgrade? Could this also be due to users clicking on the submit button multiple times, and could some javascript that disables the button after a single click resolve the issue?

Any help would be appreciated. Thanks!

12 Apr 2012, 10:29 PM
#2
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Suddenly getting multiple submissions issue to Authorize.net AIM

The owner is positive sure that this is not happening because of the customer hitting the submit button twice because he has tested it himself. It also started happening all of sudden with no files changes to start a new reaction.

Due to the age of the version, I am worried about hacking but never have heard of anything that affects a cart this way. There's always a first time.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

12 Apr 2012, 11:00 PM
#3
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Suddenly getting multiple submissions issue to Authorize.net AIM

If you open a new account, the duplication does not occur. It's only happening on existing account.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

13 Apr 2012, 2:38 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Suddenly getting multiple submissions issue to Authorize.net AIM

There are all kinds of possible contributors:

  • old version with well known security vulnerabilities, so could have been hacked
  • users submitting multiple times (template and javascript for protecting against that was fixed in a version newer than yours)
  • an addon you've added has altered the normal flow and is causing a loop and resubmission

I can't think of anything off the top of my head that would cause "pre-existing" accounts to be affected and not "new" accounts, at least not as far as original core code is concerned.

The MOST important factor in this whole thing is the SUDDEN nature of the onset of the problem. THAT is what you should focus on in order to get your short term fix.
And your NEXT MOST IMPORTANT thing is to UPGRADE. Not just to fix today's "presenting problem", but to fix the GLARING security holes that exist on your site.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Apr 2012, 11:25 AM
#5
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Suddenly getting multiple submissions issue to Authorize.net AIM

Mirrors my advice but wanted to make sure I wasn't missing anything. Conferencing this morning with the developer who started this thread and proceeding with a complete upgrade. I did find evidence of a hack though looked to be minor comparatively. We're planning to upgrade but not in place. Starting over again in another directory and wiping out the original site to make sure we get rid of any problematic files.

Thank you Dr Byte for responding!

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo