/** * Validate the zip code. * * Zip is only required if AVS is enabled. * * @return bool * @throws Payment_Process2_Exception */ function _validateZip() { if (strlen($this->zip) || $this->performAvs) { return parent::_validateZip(); } return true; }