Skip to content

Commit

Permalink
Document IBAN digits validity (#2625)
Browse files Browse the repository at this point in the history
Although we would like to support all cases and have higher accuracy, it would require too much effort to accommodate.

Faker generates valid IBAN check digits but does not support national check digits used within the BBAN.

If this behavior is critical for an app, it's recommend to generate its own IBAN digits validity check.

See [#2588](#2588) for more details.
  • Loading branch information
Stefanni Brasil authored Nov 18, 2022
1 parent d8b50a4 commit 222b8e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/default/bank.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Faker::Bank.account_number #=> 6738582379
# Keyword arguments: digits
Faker::Bank.account_number(digits: 13) #=> 673858237902

# Faker generates valid IBAN check digits, but national check digits (BBAN) are not supported
Faker::Bank.iban #=> "GB76DZJM33188515981979"

# Keyword arguments: country_code
Expand Down

0 comments on commit 222b8e7

Please sign in to comment.