protected function checkFields() { parent::checkFields(); if ($this->amount == NULL) { throw new IgfsMissingParException("Missing amount"); } if ($this->refTranID == NULL) { if ($this->pan == NULL) { if ($this->payInstrToken == NULL) { throw new IgfsMissingParException("Missing refTranID"); } } } 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->pan != NULL or $this->payInstrToken != NULL) { if ($this->currencyCode == NULL) { throw new IgfsMissingParException("Missing currencyCode"); } } }
protected function checkFields() { parent::checkFields(); if ($this->amount == NULL) { throw new IgfsMissingParException("Missing amount"); } if ($this->refTranID == NULL) { throw new IgfsMissingParException("Missing refTranID"); } }
protected function checkFields() { parent::checkFields(); if ($this->trType == NULL) { throw new IgfsMissingParException("Missing trType"); } 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->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++; } } }