source/Core/InputValidator.php
protected function _validateDebitNote($debitInformation)
    {
        $debitInformation = $this->_cleanDebitInformation($debitInformation);
        $bankCode = $debitInformation['lsblz'];
        $accountNumber = $debitInformation['lsktonr'];
        $sepaValidator = oxNew(SepaValidator::class);

        if ($sepaValidator->isValidBIC($bankCode)) {
            $validateResult = true;
            if (!$sepaValidator->isValidIBAN($accountNumber)) {
                $validateResult = self::INVALID_ACCOUNT_NUMBER;
            }
        } else {
            $validateResult = self::INVALID_BANK_CODE;
            if (!\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blSkipDebitOldBankInfo')) {
                $validateResult = $this->_validateOldDebitInfo($debitInformation);
            }
        }

        return $validateResult;
    }
protected function _validateDebitNote($debitInformation)
    {
        $debitInformation = $this->_cleanDebitInformation($debitInformation);
        $bankCode = $debitInformation['lsblz'];
        $accountNumber = $debitInformation['lsktonr'];
        $sepaValidator = oxNew(SepaValidator::class);

        if ($sepaValidator->isValidBIC($bankCode)) {
            $validateResult = true;
            if (!$sepaValidator->isValidIBAN($accountNumber)) {
                $validateResult = self::INVALID_ACCOUNT_NUMBER;
            }
        } else {
            $validateResult = self::INVALID_BANK_CODE;
            if (!\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blSkipDebitOldBankInfo')) {
                $validateResult = $this->_validateOldDebitInfo($debitInformation);
            }
        }

        return $validateResult;
    }
protected function _validateDebitNote ( $ debitInformation ) { $ debitInformation = $ this -> _cleanDebitInformation ( $ debitInformation ) ; $ bankCode = $ debitInformation [ 'lsblz' ] ; $ accountNumber = $ debitInformation [ 'lsktonr' ] ; $ sepaValidator = oxNew ( SepaValidator :: class ) ; if ( $ sepaValidator -> isValidBIC ( $ bankCode ) ) { $ validateResult = true ; if ( ! $ sepaValidator -> isValidIBAN ( $ accountNumber ) ) { $ validateResult = self :: INVALID_ACCOUNT_NUMBER ; } } else { $ validateResult = self :: INVALID_BANK_CODE ; if ( ! \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'blSkipDebitOldBankInfo' ) ) { $ validateResult = $ this -> _validateOldDebitInfo ( $ debitInformation ) ; } } return $ validateResult ; }
Validates debit note.

@param array $debitInformation Debit information

@return bool|int
Validates debit note .