performVerifyRequest($url, $captcha); $this->error = "Could not verify captcha: Invalid response from hCaptcha received."; if ($response) { $success = $response["success"]; if (!$success) { $this->error = "Captcha verification failed."; } } return $success; } public function getName(): string { return CaptchaProvider::HCAPTCHA; } }