Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2006
    Posts
    30
    Plugin Contributions
    0

    Default v1.3.8: Random text after invoice number on Authorize.NET

    I noticed the invoice number is displayed as something like "1234-5fJbj0". It used to be "1234" before v1.3.8. Any way I can configure the authorize.net AIM to remove the random text in invoice number?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: v1.3.8: Random text after invoice number on Authorize.NET

    The 'random' number is added to prevent duplicates from occurring when submitting to authorize.net, especially on busy stores where two shoppers might attempt payment at the same time.

    It is not recommended to change that behavior.
    .

    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
    Nov 2006
    Posts
    30
    Plugin Contributions
    0

    Default Re: v1.3.8: Random text after invoice number on Authorize.NET

    Anyone actually complained about this which prompted this change? I don't believe authorize.net doesn't have "locks" to synchronize the concurrent transactions from the same merchant. I mean it's such a common feature for a backend processing system. Why would it be the client (here it's ZenCart) who worries about synchronization, not the server. This just doesn't make much sense.

    On the other hand, I have QuickBooks integrated with Authorize.net reports, this weird invoice# screwed up the QuickBooks as I still use the number only invoice# there. I am not a busy store anyway, at least I should be able to turn this feature off.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: v1.3.8: Random text after invoice number on Authorize.NET

    As you wish ... it seems we can't please everybody no matter how hard we try.

    Remove these two lines from your AIM module, and you'll have your prized old functionality back:
    Code:
        // add randomized suffix to order id to produce uniqueness ... since it's unwise to submit the same order-number twice to authorize.net
        $new_order_id = (string)$new_order_id . '-' . zen_create_random_value(6);
    Oh, and yes, there have been quite a lot of complaints about the issue ... the above code wasn't added just on a whim. There was actually a reason for it.

    Nevertheless, you are always free to change the code however you like to suit your needs.
    .

    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
    Nov 2006
    Posts
    30
    Plugin Contributions
    0

    Default Re: v1.3.8: Random text after invoice number on Authorize.NET

    Thank you DrByte! You always do great jobs! I am not complaining, just need guidance customizing it a bit.

 

 

Similar Threads

  1. v139h Authorize.net AIM using wrong order / invoice number
    By LRS in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 26 Mar 2012, 07:14 PM
  2. Authorize.net Payment Not sending Invoice Number
    By WiccanWitch420 in forum Addon Payment Modules
    Replies: 7
    Last Post: 24 Aug 2011, 05:33 PM
  3. Authorize.net adds suffix to invoice number
    By jeking in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 2 Aug 2011, 06:17 PM
  4. Replies: 10
    Last Post: 10 Feb 2011, 01:47 PM
  5. Authorize.net - invoice shows one amount, auth net another
    By linnx in forum Addon Payment Modules
    Replies: 2
    Last Post: 24 Nov 2009, 10:03 PM

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