Gateway/Http/TransferFactory.php
public function create(array $request) {
        $headers = self::$headers;

        $headers['Authorization'] = $this->config->getSecretKey();

        return $this->transferBuilder
            ->setClientConfig(self::$clientConfig)
            ->setHeaders($headers)
            ->setUri($this->config->getApiUrl())
            ->setBody($request)
            ->build();
    }
public function create(array $request) {
        $headers = self::$headers;

        $headers['Authorization'] = $this->config->getSecretKey();

        return $this->transferBuilder
            ->setClientConfig(self::$clientConfig)
            ->setHeaders($headers)
            ->setUri($this->config->getApiUrl())
            ->setBody($request)
            ->build();
    }
public function create ( array $ request ) { $ headers = self :: $ headers ; $ headers [ 'Authorization' ] = $ this -> config -> getSecretKey ( ) ; return $ this -> transferBuilder -> setClientConfig ( self :: $ clientConfig ) -> setHeaders ( $ headers ) -> setUri ( $ this -> config -> getApiUrl ( ) ) -> setBody ( $ request ) -> build ( ) ; }
Builds gateway transfer object

@param array $request
@return TransferInterface
Builds gateway transfer object