arthurdejong / python-stdnum

A Python library to provide functions to handle, parse and validate standard numbers.
https://arthurdejong.org/python-stdnum/
GNU Lesser General Public License v2.1
498 stars 206 forks source link

Add support for South Korea TIN Number #197

Closed unho closed 4 years ago

unho commented 4 years ago

Sadly I have not been able to find the algorithm to calculate the check digit. I sent an email to the contact point, but I still have not got any response. Anyway this provides basic format checking that should be of some help.

Part of #101

unho commented 4 years ago

@arthurdejong IMHO this can be landed without check digit validation. If we manage to find out how the algorithm is we can add it later.

arthurdejong commented 4 years ago

Thanks, I've merged it as b3891f1 without the check digit validation for now. I've also added a function to perform an online check in 1b7e985.