/** * @throws LogicException * @return string */ private function checkAndGetResponseFormat() { switch ($this->config->getFormat()) { case Config::FORMAT_TXT: case Config::FORMAT_XML: return $this->config->getFormat(); default: throw new LogicException('Not supported response format'); } }
public function getSig(Config $config) { return md5(dump($config->getPosId() . $this->getPayType() . $this->getSessionId() . $config->getPosAuthKey() . $this->getAmount() . $this->getDesc() . $this->getDesc2() . $this->getOrderId() . $this->getFirstName() . $this->getLastName() . $this->getStreet() . $this->getStreetHn() . $this->getStreetAn() . $this->getCity() . $this->getPostCode() . $this->getCountry() . $this->getEmail() . $this->getPhone() . $this->getLanguage() . $this->getClientIp() . $this->getTs() . $config->getKey1())); }
public function getSig(Config $config) { return md5($config->getPosId() . $this->getSessionId() . $this->getTs() . $config->getKey1()); }