I am trying to implement the new invisible reCaptcha, but it is not working.
First, event tough I have created a new key with the "invisible" option, changed the key in my application, when I look in my console I can see this request:
https://www.google.com/recaptcha/api2/anchor?k=.....
I think this is not the correct api, right?
My code for the importing part is like this:
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
Which is right according to the doc...
Second, I chose to put the captcha in a div (which is ok according to the doc):
<div id="captchaSignup"
class="g-recaptcha"
data-size="invisible" data-badge="inline"></div>
I am also using the render function to declare the callback and the site-key:
grecaptcha.render(document.getElementById('captchaSignup'), {
'sitekey' : '...',
'callback' : function(response) {$rs.validCaptcha=response;$s.$apply()}
});
This works as a captcha solution, but not as the invisible one since it is still showing the box. I know that I also have to use the execute function, but since I am still seeing the box, I think I am not in that phase yet.. Can anybody help me?