@graphcommerce/googlerecaptcha
v9.0.1
Published
This package makes it easy to add [Google Recaptcha v3](https://developers.google.com/recaptcha/docs/v3) to GraphCommerce. It allows you to load the Recatcha script conditionally on the page so it isn't initialized on all pages.
Downloads
3,993
Readme
@graphcommerce/googlerecaptcha
This package makes it easy to add Google Recaptcha v3 to GraphCommerce. It allows you to load the Recatcha script conditionally on the page so it isn't initialized on all pages.
Configuration
Configure the following (configuration values) in your graphcommerce.config.js
Add
X-Recaptcha
header to your.meshrc.yml
if it isn't there. example
Usage
If you have a form that uses GoogleRecaptcha make sure you are using one of ApolloErrorAlert, ApolloErrorFullPage and ApolloErrorSnackbar components. This will activate the Google Recaptcha plugins.
Troubleshooting
ReCaptcha validation failed, please try again
: Magento is configured correctly and this is an error coming from Google
directly. You have misconfigured something on the Google side. Make sure the
domains are set up correctly, etc.