If you are getting the error "Invalid domain for site key" as seen below, this article will guide you on how to create a new captcha key with your correct domain.
Applies to version(s): 3.9.0 or Current
Complexity Level: Average
Estimated time for Completion: 7 minutes
In this article, you will learn:
Creating a reCAPTCHA Account
- Go to https://www.google.com/recaptcha/admin#list.
- Log in with your Google account. (If you don't have any sites registered to use the reCAPTCHA API, you will need to register a new site.)
3. Choose a Label. (Since you can create multiple reCAPTCHA for the different parts of your website, adding a label will make it easier for you to identify it.)
4. Select reCAPTCHA V2 >> Checkbox.
5. Enter your website domain.
6. Accept reCAPTCHA Terms of Service.
7. Click Submit.
Note:
You need to be sure to include the www version of your domain and the version without www. Also note, if you are using a subdomain to put that in, such as shop.domain.com, depending on what URL you're using for your cart.
Fixing Captcha Error
- In your admin area, go to Settings >> Advanced Settings >> Store Settings >> Security Settings. Scroll down below to see Captcha Settings.
2. Tick the box beside "Enable reCAPTCHA" to expand captcha settings. In the reCAPTCHA Public Key field, enter your Site key from reCAPTCHA. In the reCAPTCHA Private Key, enter the Secret key from the step above.
3. Click Save.
This will automatically add CAPTCHAs to the default forms of your site, like the Register page.
Note:
CAPTCHAs added by the reCAPTCHA integration will not show up on custom forms. For example, if you made a contact form on the Contact Us page, reCAPTCHA will not show up there. You must manually create a code for forms with CAPTCHAs.
If you didn't get your question answered, please contact the PinnacleCart Support Team. To submit a ticket, go to the My Account drop-down menu at the top right of the admin area and select Support.