Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Jun 2015
    Location
    New England
    Posts
    29
    Plugin Contributions
    0

    Default Sudden duplicate authorize.net transactions? (Single order, double CC charges)

    We have a relatively busy site that has started creating duplicate transactions/invoices in Authorize.net (for a single order, obviously).

    Sometimes the zen cart orders aren't even generated (but an order ID's are), the customer's card is charged, and the Order ID isn't assigned within the zen cart site -- so the next customer takes the order ID. I"m mentioning it because it was even odder than a duplicate transaction.

    I've only seen that behavior once. Most of the time it is just two transactions for one order and the order is saved correctly in the system (but the customer gets double-billed).

    This started right around the beginning of the month, last week. I was hoping it was an authorize.net glitch, so I waited through the weekend to see if it would stop on it's own. Unfortunately we had four more incidents, so now I have to dig deeper.

    We haven't made any coding or options changes to the site. About a month ago we added new items to the catalog, but that's it.

    I'm aware that Authorize.net is in the process of upgrading their transaction gateway for high availability, using Akamai SureRoute, but I haven't changed to their new transaction URLs and their deadline to make the old URLs forward won't be until 6-30-2016.

    FAQ here: http://www.authorize.net/support/akamaifaqs/

    At first I was thinking this was the most likely culprit until I looked up their cut-over date. Now I'm not so sure.

    Has anyone else noticed this kind of behavior? (Eg, duplicate transactions with authorize.net or transactions happening without an order being saved in the db?)

    Trying to gather more clues to work with. Thanks for any input.

    Patrick.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,419
    Plugin Contributions
    81

    Default Re: Sudden duplicate authorize.net transactions? (Single order, double CC charges)

    The "cutover date" is irrelevant: On the cutover date, their old URL will automatically point to the new one, so you won't need to make any code changes. Basically it won't matter. The only reason anyone would want to use the new URL before they switch the old one over is if their site is regularly encountering failed transactions due to very high volume specifically at times when Authorize.net is trying to do system maintenance.
    That said, since you said your site is "relatively busy", I'd recommend you "try it out" by making the small change: "secure" becomes "secure2" in the URL.

    But, giving any other feedback/advice is very difficult since you've not mentioned which Authorize.net module you're using.
    And you haven't mentioned a list of what plugins you've installed.
    Also helpful would be your PHP version and your hosting company.
    I'd also suggest turning on Debug Log To File in your Authorize.net module so you can audit what's happening with each transaction by looking at the logs it generates in your /logs/ folder on your server.
    .

    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.

  3. #3
    Join Date
    Jun 2015
    Location
    New England
    Posts
    29
    Plugin Contributions
    0

    Default Re: Sudden duplicate authorize.net transactions? (Single order, double CC charges)

    The cutover date is entirely relevant to point away from the Akamai SureRoute as being the potential cause (even though not entirely conclusive due to the potential of back-end work on their systems). Not sure why you had to hammer me about something I already concluded, when I thought I clearly was showing the reasoning we agree with. Crunched for time? Bad day, maybe?

    As for your "requests" for more information

    Authorize.net Aim module
    PHP version 5.5.31
    Linux VPS inmotion hosting
    No additional modules
    Debug mode was set to Log and Email, now changed to Log File

    Thanks,
    Patrick.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,419
    Plugin Contributions
    81

    Default Re: Sudden duplicate authorize.net transactions? (Single order, double CC charges)

    Quote Originally Posted by Patrick Vincent View Post
    The cutover date is entirely relevant to point away from the Akamai SureRoute as being the potential cause (even though not entirely conclusive due to the potential of back-end work on their systems). Not sure why you had to hammer me about something I already concluded, when I thought I clearly was showing the reasoning we agree with. Crunched for time? Bad day, maybe?
    Eeks. Sorry, I didn't intend that to sound like hammering at all. I was just stating my opinion, which reflects the points I'd made in a few prior posts where people asked whether they needed to act on the akamai thing. Apologies if the tone was offensive. It wasn't meant to be.

    Given that you've been doing some logging ... to email or to file, what are the logs showing when these duplicate occurred/occur?


    Strictly speaking, a duplicate transaction suggests that the customer clicked the submit button multiple times, despite the (default Zen Cart) javascript that disables the button on first click.
    Secondarily, if an AIM error was reported (even though card was charged, which would be very odd) and they submitted again, that would be another case. But of course then one would need to investigate the AIM error. Hence the logging. (files would be AIM_xxxx.log)
    Similar for any PHP errors. (files would be myDebug-xxxxxx.log)

    hope that helps you dig further
    .

    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.

  5. #5
    Join Date
    Jun 2015
    Location
    New England
    Posts
    29
    Plugin Contributions
    0

    Default Re: Sudden duplicate authorize.net transactions? (Single order, double CC charges)

    That was superb. Thank you. I'll find out what I can.

  6. #6
    Join Date
    Jun 2015
    Location
    New England
    Posts
    29
    Plugin Contributions
    0

    Default Re: Sudden duplicate authorize.net transactions? (Single order, double CC charges)

    There are no mydebug files in the timeframe of the recent duplicate transactions. Most recent mydebug file is from 5-27.

    One duplicate that I'm sure of (because I remember the last name) shows two AIM log files, timestamped a little over five minutes from each other. This points in the direction of the duplicate submit button pressing, as you brought up.

    I remembered his name because there were two auth.net transactions, but the order ID that was generated with those transactions was never applied to an order, and a later customer took it. That customer complained that the site was 'going down' each time he tried to check out.

    I'll get the list of duplicate transactions from our customer service rep today and look at the rest of the logs. Perhaps all of these users are having a similar problem and pressing submit twice because they are getting some sort of error.

  7. #7
    Join Date
    Jun 2015
    Location
    New England
    Posts
    29
    Plugin Contributions
    0

    Default Re: Sudden duplicate authorize.net transactions? (Single order, double CC charges)

    It stopped as mysteriously as it began. Four days without an incident.

    I did gather the associated transaction printouts and was getting ready to matrix those things together with processing times and digging into whatever logging and info I could get on my host's time-corresponded issues -- but the problem just stopped.

    I'm going to guess it was network or server congestion, causing the returned zen cart page to timeout or error.

    The only proactive action I can think of that might make an impact in the future is to increase the script timeout settings... maybe.

    I might also instill with our cust service rep to gather more information about the customers if it starts again (browser, displayed error, etc..). Perhaps I'll make out a small template for her to email customers. A short questionnaire.

    Is there anything else you can think of?

    (Oh, and PS, I think I can relate your position on the Authorize/Akamai stuff. I've been trying to explain to people since the late 90's that cookies aren't viruses, but are pretty useful when you don't have a login over a stateless protocol. To this day people still ask about them and I get a little tense - I suspect from repeating myself for nearly two decades.)

    Be well. And thanks so much for the attention. If I ever do find a definitive cause, I'll be sure to come back and fill in what blanks I can.

  8. #8
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,850
    Plugin Contributions
    11

    Default Re: Sudden duplicate authorize.net transactions? (Single order, double CC charges)

    wild guess... your hosting company (or you) changed the email setting.

    i use authorize.net, however i have modified the timing of the transaction submission due to clients needs. so i would not get into this situation. however, when the sending of an order email fails, it screws up the whole order process. see:

    https://www.zen-cart.com/showthread....41#post1311441

    frankly, i'm not convinced that this is the problem, but you were asking for anything else...

    it does seem like a network problem. especially when you say the order ID gets assigned to the next customer's orders. i have had experiences similar when there are problems with queuing on other systems...

    these are always the trickiest to figure out.

    good luck!
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  9. #9
    Join Date
    Jun 2015
    Location
    New England
    Posts
    29
    Plugin Contributions
    0

    Default Re: Sudden duplicate authorize.net transactions? (Single order, double CC charges)

    I did ask for anything, yes, good input, and thank you I'll add it to the list of things to look out for. All troubleshooting ideas should be welcome with people (just be careful doing it in stackoverflow -- generally speaking, the community is far too officious and competitive for things like good ideas).

  10. #10
    Join Date
    Jun 2015
    Location
    New England
    Posts
    29
    Plugin Contributions
    0

    Default Re: Sudden duplicate authorize.net transactions? (Single order, double CC charges)

    Update: the problems started again and I found I was able to get errors in the contact form by repeatedly submitting it (thanks for the pointer on email being a potential culprit).

    From poking around I found that the setting for Email Friendly-Errors was set to false. I set it to true and no longer saw errors in the contact form after a nauseating number of re-submissions. (Note: when the contact form was still showing the error, emails were still being sent/delivered).

    Error displaying on-submit of contact form:

    Email Error: SMTP Error: Data not accepted.
    SMTP server error:
    I'm not sure if this was 100% of the problem, but based on the good change in behavior of the contact form after I set the option to true (no more errors), I'm hoping it clears up most of the ordering issues. Why it didn't cause more of a problem with that setting set to false for so long baffles me.

    I'm concluding that something must have changed on the hosting/vps side even though the host support staff were less-than-willing to investigate that part. Perhaps a cpanel/whm/exim(email) update that altered the response code? Maybe? I can't be certain, especially considering how the problem seems to start/stop/start again.

    Thanks again for the attention. If the mystery unravels further, I'll update the thread so others can benefit.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Duplicate transactions authorize.net AIM
    By badarac in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 9 Aug 2016, 03:52 PM
  2. Replies: 1
    Last Post: 31 Dec 2015, 06:06 PM
  3. Authorize.net SIM double charges
    By zg1 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 7 Oct 2010, 03:23 AM
  4. Charges showing in Authorize.net but no order in zencart
    By mrawers in forum General Questions
    Replies: 0
    Last Post: 9 Jul 2010, 04:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR