Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account number without national checksum included #131

Open
Vincz opened this issue Oct 28, 2024 · 0 comments
Open

Account number without national checksum included #131

Vincz opened this issue Oct 28, 2024 · 0 comments

Comments

@Vincz
Copy link

Vincz commented Oct 28, 2024

Hi! When trying to validate a French Iban, for example: FR1420041010050500013M02606
The call to iban_get_parts returns the following:

[
  "checksum" => "14"
  "bban" => "20041010050500013M02606"
  "bank" => "20041"
  "country" => "FR"
  "branch" => "01005"
  "account" => "0500013M02606"
  "nationalchecksum" => "06"
]

The national checksum is included in the account number. Is there a proper way to get these account number without the national checksum, as on website like https://bank.codes/iban/validate/ for example?
I would be tempted to just remove the size of the national checksum from the end of the account number but if it works for France, I'm not sure it would work for others countries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant