public function formRecaptcha($name, $value = null, $attribs = null, $options = null, $listsep = '')
    {
        if (!isset($attribs['siteKey']) || !isset($attribs['secretKey'])) {
            throw new \Zend_Exception('Site key is not set in the view helper');
        }

        $customClasses = '';
        if( isset( $attribs['classes'] )) {
            if( is_array( $attribs['classes'] ) ) {
                $customClasses = implode(' ', $attribs['classes']);
            } else {
                $customClasses = $attribs['classes'];
            }
        }

        $js = '<script src=\'https://www.google.com/recaptcha/api.js\'></script>';
        $captcha= '<div class="g-recaptcha ' . $customClasses . '" data-sitekey="' . $attribs['siteKey'] . '"></div>';
        return $js . $captcha;
    }