コード例 #1
0
ファイル: Paypal.php プロジェクト: shinichi81/laravel-gateway
 /**
  * Get invoice return from gateway feed data.
  *
  * This invoice return from gateway, so don't need set method
  *
  * @access public
  * @return string
  */
 public function getGatewayInvoice()
 {
     if (parent::isBackendPosted()) {
         return $_POST['invoice'];
     }
     throw new GatewayException('Gateway invoice return from backend posted only.');
 }
コード例 #2
0
 /**
  * Set account for merchant.
  *
  * @param \Teepluss\Gateway\Drivers\TruePaymentApi
  */
 public function setMerchantAccount($val)
 {
     if (is_array($val)) {
         return parent::setMerchantAccount($val);
     }
     // Explode from string.
     list($appId, $shopId, $password, $privateKey, $rc4key) = explode(':', $val);
     $this->setAppId($appId);
     $this->setShopId($shopId);
     $this->setPassword($password);
     $this->setPrivateKey($privateKey);
     $this->setRC4Key($rc4key);
     return $this;
 }
コード例 #3
0
 /**
  * State of canceled payment returned.
  *
  * override from abstract
  *
  * @access public
  * @return bool
  */
 public function isCancelPosted()
 {
     if (parent::isSuccessPosted()) {
         if (isset($_POST) and array_key_exists('result', $_POST)) {
             $statusResult = substr($_POST['result'], 0, 2);
             return strcmp($statusResult, 99) == 0 || $statusResult == '';
         }
     }
     return false;
 }
コード例 #4
0
ファイル: Kbank.php プロジェクト: shinichi81/laravel-gateway
 /**
  * State of canceled payment returned.
  *
  * override from abstract
  *
  * @access public
  * @return bool
  */
 public function isCancelPosted()
 {
     if (parent::isSuccessPosted()) {
         if (isset($_POST['HOSTRESP'])) {
             $statusResult = $_POST['HOSTRESP'];
             return !in_array($statusResult, $this->_success_group);
         }
     }
     return false;
 }
コード例 #5
0
ファイル: Bbl.php プロジェクト: shinichi81/laravel-gateway
 /**
  * Set account for merchant.
  *
  * @param object
  */
 public function setMerchantAccount($val)
 {
     if (is_array($val)) {
         return parent::setMerchantAccount($val);
     }
     $this->setMerchantId($val);
     return $this;
 }