Omnipay\Alipay\Requests\AopVerifyAppPayReturnRequest::sendData PHP 메소드

sendData() 공개 메소드

Send the request with specified data
public sendData ( mixed $data ) : Omnipay\Common\Message\ResponseInterface
$data mixed The data to send
리턴 Omnipay\Common\Message\ResponseInterface
    public function sendData($data)
    {
        $request = new AopNotifyRequest($this->httpClient, $this->httpRequest);
        $request->initialize($this->parameters->all());
        $request->setEndpoint($this->getEndpoint());
        $request->setParams($data);
        $request->setSort(false);
        $request->setEncodePolicy(Signer::ENCODE_POLICY_JSON);
        $request->setAlipayPublicKey($this->getAlipayPublicKey());
        /**
         * @var AopNotifyResponse $response
         */
        $response = $request->send();
        return $response;
    }