Jump to content


Welcome to the T3Leads Forum.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, create your account today.
To all the members who previously registered on the old T3Leads forum: your registration data were not transferred from the old forum. To get started on the new T3leads.com forum please register again to get access.

Photo

USA Bank Routing Number Validation

Leads channels

  • Please log in to reply
No replies to this topic

#1 admin

admin

    Admin

  • Administrators
  • 38 posts

Posted 19 April 2017 - 07:35 AM

An ABA number (also known as routing number or routing transfer number) is a sequence of nine numeric characters used by banks to identify specific financial institutions within the United States. An ABA number is used for wires and electronic automatic clearing house (ACH) transactions such as electronic funds transfer, direct deposit, direct payment of consumer bills, e-checks, and tax payments, among others. Your ABA is not always the same as the routing number printed on your bank checks, so please contact your bank for the appropriate ABA number.

JavaScript
function checkABA(s) {
    var i, n, t;
    t = "";
    for (i = 0; i < s.length; i++){
       c = parseInt(s.charAt(i), 10);
       if (c >= 0 && c <= 9)t = t + c;
    }
    if (t.length != 9)return false;
    n = 0;
    for (i = 0; i < t.length; i += 3){
       n += parseInt(t.charAt(i),     10) * 3
          +  parseInt(t.charAt(i + 1), 10) * 7
          +  parseInt(t.charAt(i + 2), 10);
    }
    if(n != 0 && n % 10 == 0) return true;
    else return false;
}
PHP

function checkABA($value) {
    if(!is_numeric($value)) return false;       
   
    $value = sprintf("%09d", $value);
   
    $n = 0;
    for ($i = 0; $i < 9; $i += 3){
        $n += $value[$i] * 3 + $value[$i+1] * 7 + $value[$i+2];
    }
    if($n != 0 && $n%10 == 0) return true;
    else return false;   
}






Also tagged with one or more of these keywords: Leads channels

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Copyright © 2017 T3 leads