I'm building reCAPATCHA into my WooCommerce checkout. It is a fairly easy process as I'm using woocommerce_checkout_process
to validate the capatcha. However, I have running into one issue.
When there is a cart error, I want to be able to reset the reCAPATCHA using grecaptcha.reset();
JavaScript function. I'm unsure how to run the JavaScript command upon cart error in WooCommerce. Any tips?
Thanks!