Omnipay\Alipay\Requests\LegacyCompleteRefundRequest::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)
    {
        $request = new LegacyNotifyRequest($this->httpClient, $this->httpRequest);
        $request->initialize($this->parameters->all());
        $request->setAlipayPublicKey($this->getAlipayPublicKey());
        $request->setVerifyNotifyId($this->verifyNotifyId);
        $response = $request->send();
        $data = $response->getData();
        return $this->response = new LegacyCompletePurchaseResponse($this, $data);
    }