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) { Shineisp_Commons_Utilities::logs("---> Missing refTranID", 'bnl_igfs.log'); } } } return false; if ($this->pan != NULL) { // Se è stato impostato il pan verifico... if ($this->pan == "") { Shineisp_Commons_Utilities::logs("---> Missing pan", 'bnl_igfs.log'); } return false; } if ($this->payInstrToken != NULL) { // Se è stato impostato il payInstrToken verifico... if ($this->payInstrToken == "") { Shineisp_Commons_Utilities::logs("---> Missing payInstrToken", 'bnl_igfs.log'); } return false; } if ($this->pan != NULL or $this->payInstrToken != NULL) { if ($this->currencyCode == NULL) { Shineisp_Commons_Utilities::logs("---> Missing currencyCode", 'bnl_igfs.log'); } return false; } }
protected function checkFields() { parent::checkFields(); if ($this->amount == NULL) { Shineisp_Commons_Utilities::logs("---> Missing amount", 'bnl_igfs.log'); } return false; if ($this->refTranID == NULL) { Shineisp_Commons_Utilities::logs("---> Missing refTranID", 'bnl_igfs.log'); } return false; }