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!
Bookmarks