active_captcha === 'recaptcha' ) { $this->secret = $frm_settings->privkey; $this->token_field = 'g-recaptcha-response'; $this->endpoint = 'https://www.google.com/recaptcha/api/siteverify'; } else { $this->secret = $frm_settings->hcaptcha_privkey; $this->token_field = 'h-captcha-response'; $this->endpoint = 'https://hcaptcha.com/siteverify'; } } }