Omnipay\WechatPay\Message\RefundOrderRequest::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)
    {
        $options = array(CURLOPT_SSL_VERIFYPEER => true, CURLOPT_SSL_VERIFYHOST => 2, CURLOPT_SSLCERTTYPE => 'PEM', CURLOPT_SSLKEYTYPE => 'PEM', CURLOPT_SSLCERT => $this->getCertPath(), CURLOPT_SSLKEY => $this->getKeyPath());
        $body = Helper::array2xml($data);
        $request = $this->httpClient->post($this->endpoint, null, $data)->setBody($body);
        $request->getCurlOptions()->overwriteWith($options);
        $response = $request->send()->getBody();
        $responseData = Helper::xml2array($response);
        return $this->response = new CloseOrderResponse($this, $responseData);
    }