Beispiel #1
0
 /**
  * @return \Klarna_Checkout_ConnectorInterface
  */
 protected function getConnector()
 {
     if ($this->connector) {
         return $this->connector;
     }
     \Klarna_Checkout_Order::$contentType = $this->config->contentType;
     \Klarna_Checkout_Order::$baseUri = $this->config->baseUri;
     if (property_exists('Klarna_Checkout_Order', 'accept')) {
         \Klarna_Checkout_Order::$accept = $this->config->acceptHeader;
     }
     return \Klarna_Checkout_Connector::create($this->config->secret);
 }