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

feat: add check digit validation for aba routing numbers #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

phlickey
Copy link

@phlickey phlickey commented Jul 27, 2023

This PR implements check digit validation according to the algorithm described here:

https://en.wikipedia.org/wiki/ABA_routing_transit_number#Check_digit

It assigns the result to the isPotentiallyValid property of the validation result, so as not to introduce a breaking change.

An additional property, isCheckDigitValid could also be added to further disambiguate the check, since this is definitely less permissive than the existing isPotentiallyValid result.

@phlickey phlickey requested a review from a team as a code owner July 27, 2023 17:18
@phlickey phlickey force-pushed the feat/checkdigit-validation branch from 6d385e0 to da0b937 Compare July 27, 2023 17:24
@jplukarski
Copy link
Contributor

Hey @phlickey , thanks for the PR! We've added a ticket to review and add feedback in our upcoming sprint.

For internal tracking -> DTBTSDK-2900

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

Successfully merging this pull request may close these issues.

2 participants