/** * @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'); }
/** * @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('paypal_plus.rest_client'); $this->pluginLogger = $bootstrap->get('pluginlogger'); }