javascript 从路由号码获取银行名称

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18749582/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 13:04:49  来源:igfitidea点击:

Get bank name from routing number

phpjavascriptstripe-paymentsbankingsensitive-data

提问by tim peterson

Googling for an array of common routing numbersand their US-based bank names pulls up a whole list of spammy sites. Can anyone point me to where I could find such an array or better yet a javascript/jquery plugin that handles the routing number parsing?

谷歌搜索一系列常见的路由号码和它们在美国的银行名称,会拉出一整个垃圾邮件站点列表。谁能指出我在哪里可以找到这样的数组或更好的处理路由号码解析的javascript/jquery插件?

I know Stripemust at least have this list because they tell me my bank name when I give them my routing number during their OAuth protocol.

我知道Stripe至少必须有这个列表,因为当我在他们的 OAuth 协议期间给他们我的路由号码时,他们会告诉我我的银行名称。

If it is not possible for me to get this list, I guess Stripe must have special clearance(?) which seems strange to me since these numbers are the same for everyone who uses each bank.

如果我无法获得此列表,我想 Stripe 必须有特殊的许可(?),这对我来说似乎很奇怪,因为这些数字对于使用每个银行的每个人都是相同的。

Regardless, what's the deal with the scarcity of information here?

无论如何,这里的信息稀缺是怎么回事?

回答by tim peterson

The list is available here: https://www.fededirectory.frb.org/FedACHdir.txt(replacement link)

该列表可在此处获得:https: //www.fededirectory.frb.org/FedACHdir.txt替换链接

Even better, routingnumbers.infohas an API that allows to access it like this:

更好的是,routingnumbers.info有一个允许像这样访问它的 API:

https://www.routingnumbers.info/api/data.json?rn=xxxxxxxxxx

It returns a JSON object where customer_nameis the name of the bank.

它返回一个 JSON 对象,其中customer_name是银行的名称。