go-pascal / iban

GoLang IBAN Validation module
MIT License
14 stars 11 forks source link

Iranian IBAN support #10

Closed ccoVeille closed 1 week ago

ccoVeille commented 1 week ago

Someone opened an issue on supporting Iranian IBAN on https://github.com/almerlucke/go-iban project

I made some searched and gathered some information

26 characters IR + 24 digits

Some sources:

https://iban-analyzer.com/iban-countries/ir

https://www.iban.com/structure

Structure 3 digits for the bank apparently

https://github.com/rghorbani/iran-sheba/blob/master/index.js#L292

Validation examples:

https://github.com/rghorbani/iran-sheba/blob/master/index.js#L308-L328

https://github.com/RezaOptic/irvalidator-python/blob/develop/irvalidator%2Fiban.py

classic rule apparently, to be checked

Originally posted by @ccoVeille in https://github.com/almerlucke/go-iban/issues/3#issuecomment-2466657528

Are you interested in supporting Iranian IBAN in your lib?

ccoVeille commented 1 week ago

My request is about knowing if you are interested

I can open a PR then.

ccoVeille commented 1 week ago

Fixed with af1be5dfcd2085319c46f3f7bf803a12e3b785c8

Thanks