source/Core/InputValidator.php
protected function _validateOldDebitInfo($debitInfo)
    {
        $stringHelper = getStr();
        $debitInfo = $this->_fixAccountNumber($debitInfo);

        $validationResult = true;

        if (!$stringHelper->preg_match("/^\d{5,8}$/", $debitInfo['lsblz'])) {
            // Bank code is invalid
            $validationResult = self::INVALID_BANK_CODE;
        }

        if (true === $validationResult && !$stringHelper->preg_match("/^\d{10,12}$/", $debitInfo['lsktonr'])) {
            // Account number is invalid
            $validationResult = self::INVALID_ACCOUNT_NUMBER;
        }


        return $validationResult;
    }
protected function _validateOldDebitInfo($debitInfo)
    {
        $stringHelper = getStr();
        $debitInfo = $this->_fixAccountNumber($debitInfo);

        $validationResult = true;

        if (!$stringHelper->preg_match("/^\d{5,8}$/", $debitInfo['lsblz'])) {
            // Bank code is invalid
            $validationResult = self::INVALID_BANK_CODE;
        }

        if (true === $validationResult && !$stringHelper->preg_match("/^\d{10,12}$/", $debitInfo['lsktonr'])) {
            // Account number is invalid
            $validationResult = self::INVALID_ACCOUNT_NUMBER;
        }


        return $validationResult;
    }
protected function _validateOldDebitInfo ( $ debitInfo ) { $ stringHelper = getStr ( ) ; $ debitInfo = $ this -> _fixAccountNumber ( $ debitInfo ) ; $ validationResult = true ; if ( ! $ stringHelper -> preg_match ( "/^\d{5,8}$/" , $ debitInfo [ 'lsblz' ] ) ) { // Bank code is invalid $ validationResult = self :: INVALID_BANK_CODE ; } if ( true === $ validationResult && ! $ stringHelper -> preg_match ( "/^\d{10,12}$/" , $ debitInfo [ 'lsktonr' ] ) ) { // Account number is invalid $ validationResult = self :: INVALID_ACCOUNT_NUMBER ; } return $ validationResult ; }
Validates old debit info.

@param array $debitInfo Debit info

@return bool|int
Validates old debit info .