init((int)$merchantId, (int)$posId, $salt, $testMode); } private function init($merchantId, $posId, $salt, $testMode) { if ($merchantId <= 0 || $posId <= 0 || empty($salt)) { return false; } try { $this->p24Class = new Przelewy24Class($merchantId, $posId, $salt, $testMode); $this->merchantId = $merchantId; $this->posId = $posId; $this->salt = $salt; $this->soap = new SoapClient($this->p24Class->getHost() . $this->wsdlService, array('trace' => true, 'exceptions' => true, 'cache_wsdl' => WSDL_CACHE_NONE)); } catch (Exception $e) { Logger::addLog($e->getMessage(), 1); return false; } } }