Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / v1.3.8: Random text after invoice number on Authorize.NET

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

Locked

Views: 2,043

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
05 Dec 2007, 16:10
#1
linksys avatar

linksys

New Zenner

Join Date:
Nov 2006
Posts:
30
Plugin Contributions:
0

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? :blink:

05 Dec 2007, 21:06
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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.

06 Dec 2007, 03:06
#3
linksys avatar

linksys

New Zenner

Join Date:
Nov 2006
Posts:
30
Plugin Contributions:
0

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.:smile:

06 Dec 2007, 03:10
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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:```
// 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.
06 Dec 2007, 04:05
#5
linksys avatar

linksys

New Zenner

Join Date:
Nov 2006
Posts:
30
Plugin Contributions:
0

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. :cool: