Recaptcha not working correctly in checkout page
-
I’m trying to add a reCAPTCHA after the Woocommerce action hook in the checkout payment part and it doesn’t appear when the page loads.
As you can see in the prints below, I want to, for example, place the reCAPTCHA so that it appears after the hook woocommerce_checkout_after_terms_and_conditions, that is, before the button to make payment.
In the documentation of the plugin I’m using he asks to put a do_action (‘anr_captcha_form_field’); where I want reCAPTCHA to appear.
So I used this simple function:
add_action (‘woocommerce_checkout_after_terms_and_conditions’, ‘captcha’);
function captcha () {
do_action (‘anr_captcha_form_field’);
}
Then when I load the page it appears but when the page finishes loading, a loading animation appears in the payment part and soon after it disappears, when I activate the plugin to show the hooks it is there but it does not appear.I thought it was some error in the code but when I put it, for example, it appears after the hook woocommerce_after_order_notes it appears normally as shown in the prints below, it just does not appear in those parts that have this loading.
- The topic ‘Recaptcha not working correctly in checkout page’ is closed to new replies.