scriptua/magento2-invisible-captcha dev-master

Type

magento2-module

License

GNU-3.0

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Google Invisible Captcha for magento 2

Installation Guide

composer require scriptua/magento2-invisible-captcha
bin/magento module:enable Script_InvisibleCaptcha
bin/magento setup:upgrade

Develop usage

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();
            }
        }
    });
});