Example #1
0
 protected function checkFields()
 {
     parent::checkFields();
     if ($this->paymentID == NULL || "" == $this->paymentID) {
         throw new IgfsMissingParException("Missing paymentID");
     }
 }
Example #2
0
 protected function checkFields()
 {
     parent::checkFields();
     if ($this->trType == NULL) {
         throw new IgfsMissingParException("Missing trType");
     }
     if ($this->trType != "TOKENIZE") {
         if ($this->amount == NULL) {
             throw new IgfsMissingParException("Missing amount");
         }
         if ($this->currencyCode == NULL) {
             throw new IgfsMissingParException("Missing currencyCode");
         }
     }
     if ($this->langID == NULL) {
         throw new IgfsMissingParException("Missing langID");
     }
     if ($this->notifyURL == NULL) {
         throw new IgfsMissingParException("Missing notifyURL");
     }
     if ($this->errorURL == NULL) {
         throw new IgfsMissingParException("Missing errorURL");
     }
     if ($this->payInstrToken != NULL) {
         // Se è stato impostato il payInstrToken verifico...
         if ($this->payInstrToken == "") {
             throw new IgfsMissingParException("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 IgfsMissingParException("Missing productCode[" . i . "]");
                 }
                 if ($product->productDescription == NULL) {
                     throw new IgfsMissingParException("Missing productDescription[" . i . "]");
                 }
             }
             $i++;
         }
     }
     if ($this->mandateInfo != NULL) {
         if ($this->mandateInfo->mandateID == NULL) {
             throw new IgfsMissingParException("Missing mandateID");
         }
     }
 }
Example #3
0
 protected function checkFields()
 {
     parent::checkFields();
     if ($this->trType == NULL) {
         throw new IgfsMissingParException("Missing trType");
     }
     if ($this->trType != "TOKENIZE") {
         if ($this->amount == NULL) {
             throw new IgfsMissingParException("Missing amount");
         }
         if ($this->currencyCode == NULL) {
             throw new IgfsMissingParException("Missing currencyCode");
         }
     }
     if ($this->langID == NULL) {
         throw new IgfsMissingParException("Missing langID");
     }
     if ($this->payInstrToken != NULL) {
         // Se è stato impostato il payInstrToken verifico...
         if ($this->payInstrToken == "") {
             throw new IgfsMissingParException("Missing payInstrToken");
         }
     }
 }
Example #4
0
 protected function checkFields()
 {
     parent::checkFields();
     if ($this->payInstrToken == NULL || $this->payInstrToken == "") {
         throw new IgfsMissingParException("Missing payInstrToken");
     }
     if ($this->amount == NULL) {
         throw new IgfsMissingParException("Missing amount");
     }
     if ($this->level3Info != NULL) {
         $i = 0;
         if ($this->level3Info->product != NULL) {
             foreach ($this->level3Info->product as $product) {
                 if ($product->productCode == NULL) {
                     throw new IgfsMissingParException("Missing productCode[" . i . "]");
                 }
                 if ($product->productDescription == NULL) {
                     throw new IgfsMissingParException("Missing productDescription[" . i . "]");
                 }
             }
             $i++;
         }
     }
 }