Type
magento2-module
magento2-module
GNU-3.0
None
None
None
None
None
Google Invisible Captcha for magento 2
composer require scriptua/magento2-invisible-captcha
bin/magento module:enable Script_InvisibleCaptcha
bin/magento setup:upgrade
require([
'jquery',
'reCaptcha'
], function ($) {
$(form).reCaptcha({
'callback': function (t, token) {
if(t.$parentForm.validation() && t.$parentForm.validation('isValid')) {
t.tokenField.val(token);
t.$parentForm.submit();
}
}
});
});