Wrong IBAN formatting for Costa Rica #643
Labels
c: bug
Something isn't working
good first issue
Good for newcomers
p: 1-normal
Nothing urgent
s: accepted
Accepted feature / Confirmed bug
Milestone
Describe the bug
@halvorv and I discovered an error in the generation of Costa Rican IBAN codes. According to multiple sources we have found online (here and here for example), a Costa Rican IBAN code should consist of in total 22 characters, following the structure like this:
CR99 0000 0000 0000 8888 88
CR
This totals up to 22 characters in total. However, in Faker, it is currently defined like this:
According to this source, we can include that one reserved character within the bank code.
Hence, the first object in the
bban
array should be defined with a count of4
instead of3
, the total should become22
and the formatting should becomeCRkk bbbb cccc cccc cccc cc
Reproduction
Generate an IBAN number for Costa Rica and it will generate an invalid one:
Additional Info
No response
The text was updated successfully, but these errors were encountered: