globalcitizen / php-iban

Generate, parse, validate, error-correct and present IBAN (and IIBAN) bank account information in PHP.
GNU Lesser General Public License v3.0
474 stars 109 forks source link

IBAN validation fails incorrectly #124

Closed elimentz closed 1 year ago

elimentz commented 1 year ago

The IBAN validation fails for IBAN BE20063646982456. Not sure why, the IBAN validator indicates it is valid. I'm using version 4.2.1

Screenshot 2023-03-09 at 20 33 26
globalcitizen commented 1 year ago

I suggest removing the code and re-installing as you must have a modified version.

$ php test.php
IBAN BE20063646982456 is valid.
Array
(
    [checksum] => 20
    [bban] => 063646982456
    [bank] => 063
    [country] => BE
    [branch] =>
    [account] => 646982456
    [nationalchecksum] => 56
)
 - national checksum valid.
$ git pull
From github.com:globalcitizen/php-iban
 * [new tag]         v4.2.1     -> v4.2.1
Already up to date.