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

Missing country support for Madagascar #151

Open
j-kwan opened this issue Oct 9, 2024 · 2 comments
Open

Missing country support for Madagascar #151

j-kwan opened this issue Oct 9, 2024 · 2 comments
Assignees
Milestone

Comments

@j-kwan
Copy link

j-kwan commented Oct 9, 2024

Hi,

Is it possible to add BBAN structure of Madagascar please ?

The country code for Madagascar is "MG".
The total length of the IBAN for Madagascar is 27 characters.

The BBAN for Madagascar is composed of the following parts:
Bank Code: 5 alphanumeric characters.
Branch Code: 5 alphanumeric characters.
Account Number: 11 alphanumeric characters.
National Check Digits: 2 alphanumeric characters.

Something like that in the BbanStructure.java file ?

structures.put(
            CountryCode.MG,
            new BbanStructure(
                    BbanStructureEntry.bankCode(5, 'c'),
                    BbanStructureEntry.branchCode(5, 'c'),
                    BbanStructureEntry.accountNumber(11, 'c'),
                    BbanStructureEntry.nationalCheckDigit(2, 'c')));

The BIC for Madagascar follows the standard SWIFT format, which is typically 8 or 11 characters long.

Best regards

@hajk1 hajk1 self-assigned this Oct 9, 2024
@hajk1 hajk1 added this to the 4.0.0 milestone Oct 9, 2024
@hajk1
Copy link
Collaborator

hajk1 commented Oct 9, 2024

Hi @j-kwan, I plan to add it to the next release.

@j-kwan
Copy link
Author

j-kwan commented Oct 9, 2024

Great !
Thank you very much !

@j-kwan j-kwan closed this as completed Oct 9, 2024
@j-kwan j-kwan reopened this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants