/**
  * @param RestClient $restClient
  * @param Session $session
  * @param PaypalBootstrap $paypalBootstrap
  */
 public function __construct(RestClient $restClient, $session, $paypalBootstrap)
 {
     $this->restClient = $restClient;
     $this->restClient->setHeaders('PayPal-Partner-Attribution-Id', 'ShopwareAG_Cart_PayPalPlus_1017');
     $this->session = $session;
     $this->paypalBootstrap = $paypalBootstrap;
 }
Ejemplo n.º 2
0
 /**
  * @param Bootstrap $bootstrap
  */
 public function __construct(Bootstrap $bootstrap)
 {
     $this->bootstrap = $bootstrap;
     $this->paypalBootstrap = $bootstrap->Collection()->get('SwagPaymentPaypal');
     $this->config = $this->paypalBootstrap->Config();
     $this->session = $bootstrap->get('session');
     $this->restClient = $bootstrap->get('paypalRestClient');
     $this->restClient->setHeaders('PayPal-Partner-Attribution-Id', 'ShopwareAG_Cart_PayPalPlus_1017');
 }