コード例 #1
0
ファイル: Connection.php プロジェクト: nextras/payu
 /**
  * @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');
     }
 }
コード例 #2
0
ファイル: CreatePaymentRequest.php プロジェクト: nextras/payu
 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()));
 }
コード例 #3
0
ファイル: Request.php プロジェクト: nextras/payu
 public function getSig(Config $config)
 {
     return md5($config->getPosId() . $this->getSessionId() . $this->getTs() . $config->getKey1());
 }