Invisible Recaptcha

This extension helps easily integrate Invisible reCAPTCHA from Google. Simply install it and configure it by following instructions on this page.

However it doesn't seem to support form that make calls via AJAX. Therefore some further modification needs to be made. Modifications listed below are dirty, but solves the problem quickly.

  • Edit {webroot}/app/design/frontend/base/default/template/amasty/aminvisiblecaptcha/captcha.phtml
  • Find the line that says currentForm.submit();
  • And replace that line with the code below
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
if (currentForm.id == 'your-form-id') {
    var data = jQuery('#your-form-id').serialize();
    var url= "<?php echo Mage::app()->getStore()->isCurrentlySecure() ? Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK, true) : Mage::getBaseUrl(); ?>{some/location}";

    jQuery.ajax({
        url: url,
        dataType: 'json',
        type : 'post',
        data: data,
        success: function(data){
           // some logic
        }
    });
} else {
    currentForm.submit();
}
  • Test your ajax form and enjoy.

Testing Invisible Recaptcha on purpose

To trigger invisible recaptcha purposely follow this tutorial and change your User Agent to Google bot. This way you will get to trigger Images test which you will need to pass.