Gateway/Http/Client/AbstractTransaction.php
protected function prepareTransfer(TransferInterface $transferObject) {
        $uri    = $this->getUri();
        $body   = $transferObject->getBody();

        if( array_key_exists('chargeId', $body) ) {
            $uri = str_replace('{chargeId}', $body['chargeId'], $uri);

            unset($body['chargeId']);
        }

        $this->fullUri  = $transferObject->getUri() . $uri;
        $this->body     = $body;
    }
protected function prepareTransfer(TransferInterface $transferObject) {
        $uri    = $this->getUri();
        $body   = $transferObject->getBody();

        if( array_key_exists('chargeId', $body) ) {
            $uri = str_replace('{chargeId}', $body['chargeId'], $uri);

            unset($body['chargeId']);
        }

        $this->fullUri  = $transferObject->getUri() . $uri;
        $this->body     = $body;
    }
protected function prepareTransfer ( TransferInterface $ transferObject ) { $ uri = $ this -> getUri ( ) ; $ body = $ transferObject -> getBody ( ) ; if ( array_key_exists ( 'chargeId' , $ body ) ) { $ uri = str_replace ( '{chargeId}' , $ body [ 'chargeId' ] , $ uri ) ; unset ( $ body [ 'chargeId' ] ) ; } $ this -> fullUri = $ transferObject -> getUri ( ) . $ uri ; $ this -> body = $ body ; }
Prepares the URI and body based on the given transfer object.

@param TransferInterface $transferObject
Prepares the URI and body based on the given transfer object .