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

Harden PAN & GSTIN validations #463

Open
miteshashar opened this issue Sep 25, 2023 · 1 comment
Open

Harden PAN & GSTIN validations #463

miteshashar opened this issue Sep 25, 2023 · 1 comment

Comments

@miteshashar
Copy link
Contributor

After review and merge of boxoffice.utils.misc.PAN_RE into main, it should be used for validation of PAN numbers.

GSTIN validations should incorporate the PAN validation as well.

@jace
Copy link
Member

jace commented Sep 26, 2023

The only thorough way to validate both is via the online APIs; the regex and checksum approaches are just first pass. This is because PAN numbers have been issued with invalid checksums and those continue to remain valid.

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