When I call grecaptcha.reset() a websocket event type 'message' is emitted, resulting in our embedded Moneris form being submitted. This is not desired behaviour.
---
I have narrowed down the function doDataTokenize being called and sending the submit request to Moneris. Notice the bypass code in the if statement of doDataTokenize ensures the event.origin is not being tested.
if (event.origin == "" || "bypass" == "bypass")
The expected behaviour is for grecaptcha.reset() to be called and not trigger any events with Moneris.
In reply to sketchedin: