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?![]()
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?![]()
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.
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.![]()
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: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.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);
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.
Thank you DrByte! You always do great jobs! I am not complaining, just need guidance customizing it a bit.![]()