Good day
We are facing an issue when the user tries to select Paynow as the payment method.
The error in the console is as below:
paynow-js.js?ver=1.2.0:5 Uncaught TypeError: Cannot read properties of null (reading ‘style’)
at HTMLDocument. (paynow-js.js?ver=1.2.0:5:30)
(anonymous) @ paynow-js.js?ver=1.2.0:5Understand this errorAI
What I have noticed is that the first time the user visits the site and tries to checkout it works, but when the user selects mobile money express or innbucks express and then while waiting for the confirmation, cancel and goes back to the previous page, you are unable to then select another payment method as it gives the error.
After a while it becomes available so it looks like it is waiting for the transaction to be timed out in the backend then it “resets” allowing the methods to be chosen again. When selecting paynow by itself, then cancel it from the paynow platform, the error does not happen.
This seems to only happen when you are using woocommerce blocks, when using the old shortcode page, there is another error, for example you choose innbucks express, then while waiting for the transaction, go back to the checkout page, select another payment method and it still takes you to innbucks, so I think this error happens when selecting either of the express options.
Plugin version is 1.3.3
Woocommerce Version is 9.7.1