Omnipay\Alipay\Requests\LegacyVerifyNotifyIdRequest::sendData PHP Method

sendData() public method

Send the request with specified data
public sendData ( mixed $data ) : Omnipay\Common\Message\ResponseInterface
$data mixed The data to send
return Omnipay\Common\Message\ResponseInterface
    public function sendData($data)
    {
        $url = sprintf('%s?%s', $this->getEndpoint(), http_build_query($data));
        $response = $this->httpClient->get($url)->send()->getBody();
        $data = ['result' => $response];
        return $this->response = new VerifyNotifyIdResponse($this, $data);
    }