I have a CMS Page which loads the newsletter subscription form like so:
<div class="newsletter-wrapper clearer">
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
</div>
and on my Page's Layout Update XML I have these:
<reference name="head">
<block type="core/text" name="google.recaptcha.api">
<action method="setText"><text><![CDATA[<script type="text/javascript" src="//www.google.com/recaptcha/api.js"></script>]]></text></action>
</block>
</reference>
This works fine.. When I load the page on the frontend (ie: when I visit the page, the captcha loads and its alright)..
But the problem is I don't know how to do the server side verification of the recaptcha.. So basically the captcha is there visually but its not functioning yet.. I am unsure of which php file i need to look into to add the google recaptcha verification.. I would appreciate if anyone with the knowdlege/know how to help me out on this..
I've tried looking at the file located at:
/app/code/core/Mage/Newsletter/controllers/SubscriberController.php
But I don't know if that is the place where I should be placing the verification codes there...
Thanks!