コード例 #1
0
ファイル: Service.php プロジェクト: klimesf/gopay
 /**
  * Loads all gopay channels
  *
  * @throws GopayException on failed communication with WS
  */
 private function loadGopayChannels()
 {
     if ($this->fetchedChannels) {
         return;
     }
     $this->fetchedChannels = TRUE;
     $methodList = GopaySoap::paymentMethodList();
     if ($methodList === NULL) {
         throw new GopayFatalException('Loading of native Gopay payment channels failed due to communication with WS.');
     }
     foreach ($methodList as $method) {
         $this->addRawChannel($method, FALSE);
     }
 }