/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * Set account for merchant. * * @param object */ public function setMerchantAccount($val) { if (is_array($val)) { return parent::setMerchantAccount($val); } $this->setMerchantId($val); return $this; }