Esempio n. 1
0
 /**
  * @param bool $testMode
  */
 protected function setTestMode($testMode = TRUE)
 {
     $this->testMode = (bool) $testMode;
     GopayConfig::$version = $this->testMode ? GopayConfig::TEST : GopayConfig::PROD;
 }
Esempio n. 2
0
 /**
  * Sets state of test mode
  *
  * @param  bool
  * @return static provides a fluent interface
  */
 public function setTestMode($testMode = TRUE)
 {
     $this->testMode = (bool) $testMode;
     GopayConfig::$version = $this->testMode ? GopayConfig::TEST : GopayConfig::PROD;
     return $this;
 }