public function sendData($data)
    {
        $httpResponse = $this->httpClient->post(
            $this->getEndpoint(),
            ['Content-Type' => 'text/xml; charset=utf-8'],
            $this->xmlSerialize($data)
        )->send();

        return $this->response = $this->newResponse( $httpResponse->xml() );
    }
public function sendData($data)
    {
        $httpResponse = $this->httpClient->post(
            $this->getEndpoint(),
            ['Content-Type' => 'text/xml; charset=utf-8'],
            $this->xmlSerialize($data)
        )->send();

        return $this->response = $this->newResponse( $httpResponse->xml() );
    }
public function sendData ( $ data ) { $ httpResponse = $ this -> httpClient -> post ( $ this -> getEndpoint ( ) , [ 'Content-Type' => 'text/xml; charset=utf-8' ] , $ this -> xmlSerialize ( $ data ) ) -> send ( ) ; return $ this -> response = $ this -> newResponse ( $ httpResponse -> xml ( ) ) ; }
Send the request payload

@param array $data Request payload

@return ResponseInterface
Send the request payload