/** * @return \Klarna */ protected function getKlarna() { $this->klarna->config($this->config->eid, $this->config->secret, $this->config->country, $this->config->language, $this->config->currency, $this->config->mode); $this->klarna->clear(); $rp = new \ReflectionProperty($this->klarna, 'xmlrpc'); $rp->setAccessible(true); /** @var \xmlrpc_client $xmlrpc */ $xmlrpc = $rp->getValue($this->klarna); $xmlrpc->verifyhost = $this->config->xmlRpcVerifyHost; $xmlrpc->verifypeer = $this->config->xmlRpcVerifyPeer; $rp->setAccessible(false); return $this->klarna; }