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

Turkish IBAN - Branch is empty string? #38

Open
Ghost93 opened this issue Nov 23, 2020 · 5 comments
Open

Turkish IBAN - Branch is empty string? #38

Ghost93 opened this issue Nov 23, 2020 · 5 comments

Comments

@Ghost93
Copy link

Ghost93 commented Nov 23, 2020

Hi
Thanks for this library, it really helps 😃 (and it has a nice name)

I have a problem regarding Turkey.
Whenever I parse a Turkish IBAN the branch code is an empty string.
I looked at the code and it seems like the branch part the start index and end index is the same - link to relevant part in json file.

Here's an example of a site that can decode the branch part given a Turkish IBAN - link.

Any ideas how I can achieve this decoding of the branch part as well using schwifty?

Thanks

@mdomke
Copy link
Owner

mdomke commented Nov 25, 2020

Hello @Ghost93,

thank you for the issue report. I tried to use the validator you linked with an example IBAN from iban.com (TR320010009999901234567890), but couldn't find the branch information in the output. Which part specifically is supposed to be the branch identifier? When looking at the official IBAN registry, the branch identifier position within the BBAN is not provided for turkish IBANs. Also wikipedia does not indicate at which position a branch identifier could be located. Please let me know if you can give me more specific information about how the parsing result should look instead!

@Ghost93
Copy link
Author

Ghost93 commented Nov 26, 2020

Hi @mdomke
You're correct, the validator I gave can identify good or bad IBAN values, and can identify the branch if its in the IBAN.
Take TR470006200157200006299246 for instance.
The result is:

BANKA BİLGİLERİ
Ad: GARANTİ BANKASI
Kod: 0062
Swift: TGBATRIS
Hesap No: 6299246

ŞUBE BİLGİLERİ
Ad: Şubesi
Kod: 1572
İl:
İlçe:
Tel: 0
Fax: 0
Adres:

First part is bank information, Second part is the branch information.

@Ghost93
Copy link
Author

Ghost93 commented Nov 29, 2020

Here's another link that explains how to decode the branch code from the IBAN.

@Ghost93
Copy link
Author

Ghost93 commented Dec 8, 2020

@mdomke
In the meantime I created a fork of your repository with the relevant change for my specific use case.
It's not the best solution - I just changed the generated file with the relevant indices.
You can see it here - link.

@mdomke
Copy link
Owner

mdomke commented Jan 9, 2024

Hej @Ghost93, from the link you provided I got the picture below
image
Would you mind explaining what the different sections mean? "SUBE KODU" is "Branch Code", "MÜSTERI NO" is "Customer Number" and "HESAP EK NO" is "Account Number" 🤷🏻‍♂️ ?

Edit: Sorry. I just realized that this issue is 2 years old, so this is rather a long shot to get a response from you 😅

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

2 participants