Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2011
    Posts
    16
    Plugin Contributions
    0

    Default Credit Card Getting Charged Twice

    Hey Folks,

    I have had this issue for almost a year now, and am attempting to resolve it.

    About once a week, I get 2 receipts from Authorize.net from the same person in the same minute. I only get ONE order from zen cart, but the credit card is charged twice, both transactions within seconds of each other.

    There are 3 parties here: My credit card gateway, Authorize.net, my web hosting service, GoDaddy, and my eCommerce software, Zen Cart.

    What Authorize.net says: Each charge is sending them a separate invoice. The customer may have clicked the SUBMIT ORDER button twice. These are not being identified as duplicate transactions since they have separate Invoice numbers.

    Can someone tell me if this is a GoDaddy response time issue? Or, is there some sort of timeout I can set in Zen Cart to prevent this from happening?

    I have ruled out Authorize.net from being the culprit, but need another lead to follow. Also, should I even be using GoDaddy with this eCommerce solution?

    Thanks so much!

    Aurora

  2. #2
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: Credit Card Getting Charged Twice

    I had the same issue on a client site recently and it appears to have been a timing issue. The default time for the checkout button to be disabled is 4 seconds. I made the following change to includes/modules/pages/checkout_confirmation.php on a 1.5.1 site:
    Original
    PHP Code:
    function submitonce()
    {
      var 
    button document.getElementById("btn_submit");
      
    button.style.cursor="wait";
      
    button.disabled true;
      
    setTimeout('button_timeout()'4000);
      return 
    false;

    New
    PHP Code:
    function submitonce()
    {
      var 
    button document.getElementById("btn_submit");
      
    button.style.cursor="wait";
      
    button.disabled true;
      
    setTimeout('button_timeout()'20000);
      return 
    false;

    4000 becomes 20000

    They have not had a duplicate order since making this change.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Credit Card Getting Charged Twice

    Multiple possible causes:

    - Anytime GoDaddy is mentioned it usually causes peoples eyes to wrinkle if they've ever used GoDaddy before. Ya, they can sometimes be the performance bottleneck.

    - Your v.1.3.9 edition of Zen Cart was released 6 years ago, and lots of bugfixes have been posted since then as well as 5 new releases, all with improvements around performance, payment processing, and minimizing user-error.

    Like badarac mentioned:
    - One of the fixes to bandage your issue until you do an upgrade could be to add some javascript to prevent double-submissions of the checkout form. Newer versions of Zen Cart have something for this built-in.
    .

    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.

  4. #4
    Join Date
    Jul 2011
    Posts
    16
    Plugin Contributions
    0

    Default Re: Credit Card Getting Charged Twice

    Fantastic!

    Badarac, I will give that a shot as a shortcut in the meantime. Thanks for that!

    DrByte, what hosting service do you recommend instead of GoDaddy? Lastly, can I just upgrade to the latest version from my current version following the latest instructions?

    Thanks all!

    Aurora

  5. #5
    Join Date
    Apr 2012
    Location
    beijing
    Posts
    258
    Plugin Contributions
    1

    Default Re: Credit Card Getting Charged Twice

    backup ,and then upgrade zencart version would be the best choice.
    focus on the open source for online shoping website.
    my site: best shop 24h.com

  6. #6
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,699
    Plugin Contributions
    9

    Default Re: Credit Card Getting Charged Twice

    Quote Originally Posted by nerdgirlie View Post
    About once a week, I get 2 receipts from Authorize.net from the same person in the same minute. I only get ONE order from zen cart, but the credit card is charged twice, both transactions within seconds of each other.

    What Authorize.net says: Each charge is sending them a separate invoice. The customer may have clicked the SUBMIT ORDER button twice. These are not being identified as duplicate transactions since they have separate Invoice numbers.
    i'm a bit curious here. if you have 2 charges at authorize.net with separate invoice numbers, and only 1 order in zen-cart, what has happened to the second invoice number sent to authorize.net? does that invoice/order number NOT exist on your zen-cart system? if it does not, do you have missing invoice/order numbers in your orders table?

    in my experience dealing with authorize.net, they are rarely, if ever, at fault. they effectively process whatever you send them.

    i think the solutions presented here are all sound, but if authorize.net says they have separate invoice numbers for the transactions, it should not be too hard to track that back to your ZC orders table, and see if those orders exist.

    good luck!
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  7. #7
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Credit Card Getting Charged Twice

    Happened to me once with the eWay payments module.

    Did what badarac recommended (extended the timeout) and added a few lines of jscript and php code to display an animated gif image "Please Wait - processing ....". Details in the eWay thread.

    Never had that problem ever again.

 

 

Similar Threads

  1. v154 Amount charged to credit card doesn't match cart total
    By JeffLC in forum Built-in Shipping and Payment Modules
    Replies: 12
    Last Post: 3 Jan 2016, 06:55 PM
  2. v139h Customer's credit card is charged, but order isn't showing up in admin
    By hml_mike in forum Managing Customers and Orders
    Replies: 16
    Last Post: 8 Feb 2015, 09:32 AM
  3. Credit Card charged, error message upon checkout
    By wllindsey524 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 21 Sep 2009, 10:38 PM
  4. Credit Card Charged - No new order!
    By jaychristopher in forum Addon Payment Modules
    Replies: 10
    Last Post: 10 Nov 2007, 05:19 AM
  5. Credit Card payment option showing twice...?
    By darrennanos in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 13 Jun 2007, 09:11 PM

Bookmarks

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