コード例 #1
0
 /**
  * Set account for merchant.
  *
  * @param \Teepluss\Gateway\Drivers\TrueMoneyApi
  */
 public function setMerchantAccount($val)
 {
     if (is_array($val)) {
         return parent::setMerchantAccount($val);
     }
     // Explode from string.
     list($appId, $shopCode, $secret, $bearer) = explode(':', $val);
     $this->setAppId($appId);
     $this->setShopCode($shopCode);
     $this->setSecret($secret);
     $this->setBearer($bearer);
     return $this;
 }
コード例 #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
ファイル: Kbank.php プロジェクト: shinichi81/laravel-gateway
 /**
  * Set account for merchant.
  *
  * @param object
  */
 public function setMerchantAccount($val)
 {
     if (is_array($val)) {
         return parent::setMerchantAccount($val);
     }
     // Explode from string.
     list($merchantId, $terminalId, $secret) = array_pad(explode(':', $val), 3, null);
     $this->setMerchantId($merchantId);
     $this->setTerminalId($terminalId);
     $this->setSecret($secret);
     return $this;
 }
コード例 #4
0
 /**
  * Set account for merchant.
  *
  * @param object
  */
 public function setMerchantAccount($val)
 {
     if (is_array($val)) {
         return parent::setMerchantAccount($val);
     }
     // Explode from string.
     list($merchantId, $username, $secureCode) = explode(':', $val);
     $this->setMerchantId($merchantId);
     $this->setUsername($username);
     $this->setSecureCode($secureCode);
     return $this;
 }
コード例 #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;
 }