Authorizejs payment plugin has started throwing "Invalid OTS Token"

  • Posts: 149
  • Thank you received: 6
  • Hikashop Business
6 days 20 hours 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 days 19 hours ago by icomex.

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

  • Posts: 84727
  • Thank you received: 13792
  • MODERATOR
6 days 17 hours 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 days 13 hours 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 days 11 hours 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.

Time to create page: 0.134 seconds
Powered by Kunena Forum