Example #1
0
 protected function checkFields()
 {
     parent::checkFields();
     if ($this->amount == NULL) {
         throw new IgfsMissingParException("Missing amount");
     }
     if ($this->currencyCode == NULL) {
         throw new IgfsMissingParException("Missing currencyCode");
     }
     if ($this->pan == NULL) {
         if ($this->payInstrToken == NULL) {
             throw new IgfsMissingParException("Missing pan");
         }
     }
     if ($this->pan != NULL) {
         // Se è stato impostato il pan verifico...
         if ($this->pan == "") {
             throw new IgfsMissingParException("Missing pan");
         }
     }
     if ($this->payInstrToken != NULL) {
         // Se è stato impostato il payInstrToken verifico...
         if ($this->payInstrToken == "") {
             throw new IgfsMissingParException("Missing payInstrToken");
         }
     }
     if ($this->termURL == NULL) {
         throw new IgfsMissingParException("Missing termURL");
     }
 }
Example #2
0
 protected function checkFields()
 {
     parent::checkFields();
     if ($this->paRes != NULL) {
         if ($this->paRes == "") {
             throw new IgfsMissingParException("Missing paRes");
         }
     }
     if ($this->md != NULL) {
         if ($this->md == "") {
             throw new IgfsMissingParException("Missing md");
         }
     }
 }