1. Home
  2. Knowledge Base
  3. SmartTags™
  4. SmartTags™ Usage Examples
  5. Add reCAPTCHA v2 Validation to the Checkout Page

Add reCAPTCHA v2 Validation to the Checkout Page

This article only applies if you are using reCAPTCHA v2 on your site.

If you have installed or upgraded MemberMouse after January 19, 2021, to MemberMouse v2.4.0+, then reCAPTCHA v3 is available to configure and it is the recommended version to use. With reCAPTCHA v3 you do not have to add anything additional to your checkout page.

If you want to learn more about how reCAPTCHA v3 works on your site, you can go to Configuring reCAPTCHA v3.

If you want to require customers to fill out a reCAPTCHA field when they're signing up, first you'll need to configure reCAPTCHA v2 on your site and then all you have to do is include the following SmartTag™ in your checkout form:

[MM_Form_Field type='input' name='captcha']

In order for this to work correctly make sure that you place the SmartTag™ between the MM_Form type='checkout' and /MM_Form SmartTags. After this SmartTag™ has been included in the checkout form MemberMouse will require that this field be filled out and match the reCAPTCHA v2 image before allowing the form to be submitted.

IMPORTANT:  The MemberMouse Captcha SmartTag must be added to the Core Checkout Page in order to ensure the reCAPTCHA fields work across all checkout forms on your site.  If the SmartTag™ is not present on the Core Checkout Page, you will see an “Invalid Captcha” error on form submission.

Was this article helpful?

Related Articles

Can’t find the answer you’re looking for?

Reach out to our Customer Success Team
Contact us!