lib/AktiveMerchant/Billing/Gateway.php
protected function ssl_request($method, $endpoint, $data, array $options = array())
    {
        $request = $this->request ?: new Request(
            $endpoint,
            $method,
            $options
        );

        $request->setMethod($method);
        $request->setUrl($endpoint);
        $request->setBody($data);
        $request->setDispatcher($this->getDispatcher());

        $request->setAdapter($this->getAdapter());

        if (true == $request->send()) {
            return $request->getResponseBody();
        }
    }
protected function ssl_request($method, $endpoint, $data, array $options = array())
    {
        $request = $this->request ?: new Request(
            $endpoint,
            $method,
            $options
        );

        $request->setMethod($method);
        $request->setUrl($endpoint);
        $request->setBody($data);
        $request->setDispatcher($this->getDispatcher());

        $request->setAdapter($this->getAdapter());

        if (true == $request->send()) {
            return $request->getResponseBody();
        }
    }
protected function ssl_request ( $ method , $ endpoint , $ data , array $ options = array ( ) ) { $ request = $ this -> request ? : new Request ( $ endpoint , $ method , $ options ) ; $ request -> setMethod ( $ method ) ; $ request -> setUrl ( $ endpoint ) ; $ request -> setBody ( $ data ) ; $ request -> setDispatcher ( $ this -> getDispatcher ( ) ) ; $ request -> setAdapter ( $ this -> getAdapter ( ) ) ; if ( true == $ request -> send ( ) ) { return $ request -> getResponseBody ( ) ; } }
Send a request to a remote server, and return the response.

@param string $method Method to use ('post' or 'get')
@param string $endpoint URL of remote endpoint to connect to
@param string $data Body to include with the request
@param array $options Additional options for the request (see {@link AktiveMerchant\Http\Request})

@throws AktiveMerchant\Billing\Exception If the request fails at the HTTP layer

@return string Response from server
Send a request to a remote server and return the response .