public function verify($response, $clientIp = null)
    {
        if (empty($response)) return false;

        $response = $this->sendVerifyRequest([
            'secret'   => $this->secret,
            'response' => $response,
            'remoteip' => $clientIp
        ]);

        return isset($response['success']) && $response['success'] === true;
    }
public function verify($response, $clientIp = null)
    {
        if (empty($response)) return false;

        $response = $this->sendVerifyRequest([
            'secret'   => $this->secret,
            'response' => $response,
            'remoteip' => $clientIp
        ]);

        return isset($response['success']) && $response['success'] === true;
    }
public function verify ( $ response , $ clientIp = null ) { if ( empty ( $ response ) ) return false ; $ response = $ this -> sendVerifyRequest ( [ 'secret' => $ this -> secret , 'response' => $ response , 'remoteip' => $ clientIp ] ) ; return isset ( $ response [ 'success' ] ) && $ response [ 'success' ] === true ; }
Verify Response.

@param  string  $response
@param  string  $clientIp

@return bool
Verify Response .