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

Roadmap for eCheck #300

Closed
MonteShaffer opened this issue Dec 4, 2016 · 3 comments
Closed

Roadmap for eCheck #300

MonteShaffer opened this issue Dec 4, 2016 · 3 comments

Comments

@MonteShaffer
Copy link

Is there a roadmap to implement this same methodology for eChecks.

Bank Name
Routing Number
Account Number
Account Type

@MonteShaffer
Copy link
Author

MonteShaffer commented Dec 7, 2016

Some code for a valid routing number ...


// https://en.wikipedia.org/wiki/Routing_transit_number#MICR_Routing_number_format
function validRoutingNumber(str)
	{
	str = trim(str);
	console.log("validRoutingNumber: "+str);
	if(!validNumber(str)) { return false; }
	var len = str.length;
		console.log(len);
	if(len != 9) { return false; }
	var sum = 0;
		var multiply = [3,7,1,3,7,1,3,7,1];
	for(var i=0;i<len;i++)
		{
		sum += multiply[i]*parseInt(str.charAt(i));
		}
		console.log(sum);
	if(sum % 10 != 0) { return false; }
	
	return true;
	}

where

function validNumber(myNumber)
	{
	return !(isNaN(myNumber-0));
	}

@BallisticPain
Copy link
Collaborator

@MonteShaffer
I'm happy to see you excited about this project. Please keep the requests coming, and as with all of them you're welcome to submit a PR, or someone will pickup the request when they have time. :)

Thanks!

@melloware
Copy link
Collaborator

Duplicate of #410

@melloware melloware marked this as a duplicate of #410 Dec 3, 2020
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

3 participants