Authorizejs payment plugin has started throwing "Invalid OTS Token"

  • Posts: 149
  • Thank you received: 6
  • Hikashop Business
6 months 4 days ago #369455

-- HikaShop version -- : 6.1.0
-- Joomla version -- : 4.1.14
-- Error-message(debug-mod must be tuned on) -- : E00114 - Invalid OTS Token.

This morning, a long-running site we host suddenly started throwing a checkout error "E00114 - Invalid OTS Token" from the AuthorizeJS plugin we've been running for about three years (v1.0.5). From what I can tell, this occurs when code attempts to run two quick processes to Authorize.net using the same nonce.

There were no software changes on our site (we haven't made the update to Joomla5 yet) no Joomla change, no PHP change, no Apache change. At the moment the error began, we were on Hikashop v5, I have since upgraded to v6.1, but saw no change. I also tested the plugin's debug setting. We bought the plugin in late 2023, so we still should be covered by its 4-years of updates offer., if there is an update out there.

When I went into Authorize.net, I saw that they had updated their user interface since I had last visited, but there were no notices of a system update on their site.

My customer's site hasn't been able to capture any orders since this began, and, of course this happens at the start of their heaviest promotions of the year.

Thank you for your help.

Last edit: 6 months 4 days ago by icomex.

Please Log in or Create an account to join the conversation.

  • Posts: 85615
  • Thank you received: 14037
  • MODERATOR
6 months 4 days ago #369463

Hi,

This is an issue no one reported so far.
The Authorize.js is getting updated by its developer when needed. And with the purchase of a plugin on our marketplace, you get access to updates for 4 years with the same download link. So, if you check your order in the My account>My orders menu on our website, you'll be able to get the latest version and download it to install it on your website.
However, I checked the history of the plugin on our end and the latest version of the plugin dates from 2022. Since then, the plugin didn't require any modification. And many others are using the plugin on their website without issues.
So I don't think updating will do anything.

I looked a bit online about this error and several pages talking about a problem on Authorize being too aggressive with its checks in some cases and that adding a delay to the code can help in such cases:
www.wpcharitable.com/documentation/autho...net-troubleshooting/
So, you could try adding the code:

sleep(10);
after the line:
public function onBeforeOrderCreate(&$order, &$do) {
of the file plugins/hikashoppayment/authorizejs/authorizejs.php and see if that helps.
If not, this will require looking deeper into it. And we would need a backend access and a FTP access. You can provide these via our contact form:
www.hikashop.com/support/contact-us.html

Please Log in or Create an account to join the conversation.

  • Posts: 149
  • Thank you received: 6
  • Hikashop Business
6 months 4 days ago #369471

That is similar to what I saw online, but I didn't know where to attempt to add a delay. I will give this a shot and let you know. Thank you for your help!

Please Log in or Create an account to join the conversation.

  • Posts: 149
  • Thank you received: 6
  • Hikashop Business
6 months 4 days ago #369472

Orders have begun to trickle back in this morning, without the delay code. At the same time, I've begun seeing a "Please include Accept.js library from cdn" error, which is definitely a caching issue on Authorize.net's part. It really does appear to be Authorize.net struggling with Black Friday, possibly lingering echos from the Cloudflare outage earlier this week.

I'll keep you informed of anything we learn. Thanks again!

The following user(s) said Thank You: nicolas, Jerome

Please Log in or Create an account to join the conversation.

  • Posts: 166
  • Thank you received: 11
  • Hikaserial Standard Hikashop Business
2 weeks 2 hours ago #371878

I recently purchased this plugin and have had two customers encounter this same error recently.

I just added the sleep(10); line, after finding this thread. I will see if that helps with the issue. However, if this original issue was reported overs 5 months ago, and that sleep line was not in the current plugin, I don't hold out much hope that it will correct the issue. If that was the solution, it should have been added to the plugin.

Last edit: 2 weeks 2 hours ago by gpraceman.

Please Log in or Create an account to join the conversation.

  • Posts: 26360
  • Thank you received: 4067
  • MODERATOR
1 week 5 days ago #371897

Hello,

I'm sorry but adding a delay in the plugin for everybody is not something "good".
It means that for every order paid by Authorize, you will ask for a wait of 10 seconds before trying to contact Authorize.

Nicolas pointed another website talking about the issue:

The OTS Token error is related to some internal processes in the Authorize.Net system. Unfortunately, since it’s due to problems on the Authorize.Net side, Charitable is not able to completely avoid it happening.

The issue is related to Authorize itself.

Adding a configuration setting so you can more easily configure the delay you want, is possible.
But we won't update the plugin and force 10s wait for everybody.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum