EcommerceBundle/Factory/Providers/PayPalDirectPaymentProvider.php
public function initialize($container, PaymentServiceProvider $psp)
    {
        parent::initialize($container, $psp);
        if(isset($this->parameters['host'])) $this->setHost($this->parameters['host']);
        if(isset($this->parameters['client_id'])) $this->setClientId($this->parameters['client_id']);
        if(isset($this->parameters['secret'])) $this->setSecret($this->parameters['secret']);
        if(isset($this->parameters['return_url'])) $this->setReturnUrl($this->parameters['return_url']);
        if(isset($this->parameters['cancel_url'])) $this->setCancelUrl($this->parameters['cancel_url']);
        
        return $this;
    }
public function initialize($container, PaymentServiceProvider $psp)
    {
        parent::initialize($container, $psp);
        if(isset($this->parameters['host'])) $this->setHost($this->parameters['host']);
        if(isset($this->parameters['client_id'])) $this->setClientId($this->parameters['client_id']);
        if(isset($this->parameters['secret'])) $this->setSecret($this->parameters['secret']);
        if(isset($this->parameters['return_url'])) $this->setReturnUrl($this->parameters['return_url']);
        if(isset($this->parameters['cancel_url'])) $this->setCancelUrl($this->parameters['cancel_url']);
        
        return $this;
    }
public function initialize ( $ container , PaymentServiceProvider $ psp ) { parent :: initialize ( $ container , $ psp ) ; if ( isset ( $ this -> parameters [ 'host' ] ) ) $ this -> setHost ( $ this -> parameters [ 'host' ] ) ; if ( isset ( $ this -> parameters [ 'client_id' ] ) ) $ this -> setClientId ( $ this -> parameters [ 'client_id' ] ) ; if ( isset ( $ this -> parameters [ 'secret' ] ) ) $ this -> setSecret ( $ this -> parameters [ 'secret' ] ) ; if ( isset ( $ this -> parameters [ 'return_url' ] ) ) $ this -> setReturnUrl ( $ this -> parameters [ 'return_url' ] ) ; if ( isset ( $ this -> parameters [ 'cancel_url' ] ) ) $ this -> setCancelUrl ( $ this -> parameters [ 'cancel_url' ] ) ; return $ this ; }
Constructor with Paypal configuration

@param string $container
@param PaymentServiceProvider $psp
Constructor with Paypal configuration