如何验证信用卡和借记卡? [英] how to validate credit and debit cards?

查看:131
本文介绍了如何验证信用卡和借记卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







我需要验证信用卡和借记卡号码。我使用LUHN的信用卡算法。它的工作原理很好(没有使用的是CREDIT -378282246310005),但是当谈到借记卡时它没有验证。



我给的例子是(DEBIT -6200 0022 2222 2222) )





我还需要另外一种算法用于借记卡吗?





请帮忙!

Hi,


I need to validate both credit and debit card numbers.I used LUHN's algorithm for credit card.It works fine (the no used is CREDIT -378282246310005),but when it comes to debit card its not validating.

the example i gave is (DEBIT -6200 0022 2222 2222)


Is there another algorithm i need to use for debit card?


Pls help!

推荐答案

试试 https://www.google.com/search?q=debit+card+numbers [ ^ ]。


我几乎可以肯定LUHN(Mod10)算法适用于CC和DC。但既然你问我双重检查。请参阅 [ ^ ]



[请鼓励通过投票解决方案或适合您的答案参与]
I was almost sure that LUHN (Mod10) algorithm is good for CCs as well as DCs. But since you asked I double checked. Please see this[^]

[Please encourage participation by up-voting solutions or answers that work for you]


这篇关于如何验证信用卡和借记卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆