Coder Social home page Coder Social logo

Comments (3)

Olympic1 avatar Olympic1 commented on August 11, 2024

According to the calculator that is provided by the Czech National Bank, the first IBAN is valid while the second one is invalid because of a wrong account number.

from php-iban.

Triplkrypl avatar Triplkrypl commented on August 11, 2024

First account CZ0401000000000000000000 looks OK, but account number is empty, IBAN can not be reconstruct back.
obrazek

from php-iban.

globalcitizen avatar globalcitizen commented on August 11, 2024

Without further investigation, only judging from the screenshot, it looks like that national bank checking interface has been implemented such that a special case input of all zeroes for the account number should be considered invalid.

This is not an IBAN (international) limitation, therefore expecting verify_iban() to catch it is not logical.

If you can find an official statement that all zeroes is disallowed from the Czech authorities, then we could perhaps add it to the national check for CZ. However, in terms of adding this special case, currently for countries we only implement iban_verify_nationalchecksum(). This is done by defining a function _iban_nationalchecksum_implementation_cz. However, I do not like the semantic impact (readability / confusion) of adding a special case exclusion to such a function.

Therefore I think this particular case, even if the special case is considered invalid by Czech authorities, they are a little bit strange for adding special cases, and we should safely consider this to be odd and out of scope for verify_iban().

from php-iban.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.