Esempio n. 1
0
 protected function checkFields()
 {
     parent::checkFields();
     if ($this->paymentID == NULL || "" == $this->paymentID) {
         Shineisp_Commons_Utilities::logs("---> Missing paymentID", 'bnl_igfs.log');
     }
     return false;
 }
Esempio n. 2
0
 protected function checkFields()
 {
     parent::checkFields();
     if ($this->trType == NULL) {
         throw new Exception("Missing trType");
     }
     if ($this->trType != "TOKENIZE") {
         if ($this->amount == NULL) {
             throw new Exception("Missing amount");
         }
         if ($this->currencyCode == NULL) {
             throw new Exception("Missing currencyCode");
         }
     }
     if ($this->langID == NULL) {
         throw new Exception("Missing langID");
     }
     if ($this->notifyURL == NULL) {
         throw new Exception("Missing notifyURL");
     }
     if ($this->errorURL == NULL) {
         throw new Exception("Missing errorURL");
     }
     if ($this->payInstrToken != NULL) {
         // Se è stato impostato il payInstrToken verifico...
         if ($this->payInstrToken == "") {
             throw new Exception("Missing payInstrToken");
         }
     }
     if ($this->level3Info != NULL) {
         $i = 0;
         if ($this->level3Info->product != NULL) {
             foreach ($this->level3Info->product as $product) {
                 if ($product->productCode == NULL) {
                     throw new Exception("Missing productCode[" . i . "]");
                 }
                 if ($product->productDescription == NULL) {
                     throw new Exception("Missing productDescription[" . i . "]");
                 }
             }
             $i++;
         }
     }
 }