src/icepay_api_base.php
public function validateVersion()
    {
        if ($_SERVER['REQUEST_METHOD'] != 'POST') {
            $this->_logger->log('Invalid request method', Icepay_Api_Logger::ERROR);
            return false;
        }

        if ($this->generateChecksumForVersion() != $this->data->checksum) {
            $this->_logger->log('Checksum does not match', Icepay_Api_Logger::ERROR);
            return false;
        }

        return true;
    }
public function validateVersion()
    {
        if ($_SERVER['REQUEST_METHOD'] != 'POST') {
            $this->_logger->log('Invalid request method', Icepay_Api_Logger::ERROR);
            return false;
        }

        if ($this->generateChecksumForVersion() != $this->data->checksum) {
            $this->_logger->log('Checksum does not match', Icepay_Api_Logger::ERROR);
            return false;
        }

        return true;
    }
public function validateVersion ( ) { if ( $ _SERVER [ 'REQUEST_METHOD' ] != 'POST' ) { $ this -> _logger -> log ( 'Invalid request method' , Icepay_Api_Logger :: ERROR ) ; return false ; } if ( $ this -> generateChecksumForVersion ( ) != $ this -> data -> checksum ) { $ this -> _logger -> log ( 'Checksum does not match' , Icepay_Api_Logger :: ERROR ) ; return false ; } return true ; }
Validate for version check
@since version 1.0.2
@access public
@return boolean
Validate for version check