本文介绍了信用卡校验和验证不需要连接到金融机构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道的验证是:

  • 校验整卡数量加起来应该为零。 (范围为0-9)
  • 检查的第一个数字(S)对卡类型
  • 检查对卡类型的长度
  • 检查对卡类型的CCV长度(我认为所有的主要类型是3反正)
  • 当然要确保它被接受卡类型以及非过期。

是否有任何其他的验证:)(我希望很多人并不知道所有这些)

Are there any other validations :) (I expect many folks did not know about all of these)

我想问的原因是因为我听到有一个对过期或CCV校验数..我只是想检查。

The reason I ask is because I overheard there was one to checksum number against expiration or CCV.. I just wanted to check.

推荐答案

  • 卡号(又名 PAN ,主账户)
    不要采取任何意见,福音。卡号是由6位发卡行标识号(IIN),一个帐号和一个LUHN校验位。该IIN范围不断变化,依赖于该信息(如付款处理器)行业一般会被更新发生变化。这是相当安全的假设,卡号应该是16至19位,并开始与3,4,5或6。除此之外,试图从IIN标识卡的类型很容易出现错误,除非您经常更新。

  • Card Number (aka PAN, Primary Account Number)
    Don't take any advice as gospel. The card number is comprised of a 6 digit Issuer Identification Number (IIN), an account number and a luhn check digit. The IIN ranges are constantly changing and industry sectors that rely on this information (such as Payment Processors) will generally be updated as changes occur. It's reasonably safe to assume that the card number should be between 16 and 19 digits, and start with 3, 4, 5 or 6. Beyond that trying to identify the card type from the IIN is prone to error unless you are frequently updated.

    卢恩/ MOD10校验位
    卡号的最后一位是校验位拿起这可能发生在操作者的身份证号码已键入换位错误。该维基百科的文章是一个很好的来源获取更多信息和code样本。

    Luhn / Mod10 check digit.
    The last digit of the card number is a check digit to pick up transposition errors which may have occured when an operator has keyed in the card number. The wikipedia article is a good source for more info and code samples.

    磁条
    如果你有物理访问卡和磁条阅读器,然后跟踪2包含银行卡信息。当中的细节卡号,有效期,LRC(校验位)和服务code。该服务code(仅适用于磁条)告知如何卡可以使用,例如,只对国家付款,只使用在ATM(而不是作为支付卡),现金回是否应该提供等

    Magnetic stripe
    If you have physical access to the card, and a magstripe reader, then track 2 contains banking card info. Amongst the details are card number, expiry date, LRC (check digit) and a Service Code. The service code (only available on mag stripe) informs how the card may be used, eg only for national payments, only for use at an ATM (not as a payment card), whether cash back should be offered etc.

    CCV / CSC / CV2
    安全数字被从未压印到卡上,或者记录在磁条。应该是三上的所有数字,除了美国运通(总是4位数字)

    CCV / CSC / CV2
    Security digits are never embossed onto the card, or recorded on the magstripe. Should be three digits on all except Amex (always 4 digits)

    发行日期
    用于手动(理智)只检查。授权请求过程中不发

    Issue date
    Used for manual (sanity) check only. Not sent during the authorization request

    有效期限的
    一个常见的​​误解是,过期的卡不能使用。他们经常可以,但必须通过在线授权第一(使得收单银行拥有最终决定权是否被允许或不允许)。到期日可长达20年,在未来的(甚至进一步在极少数情况下)

    Expiry date
    A common misconception is that expired cards cannot be used. They frequently can, but they must go through online authorization first (so that the acquiring bank has final say on whether it is permitted or not). Expiry dates can be up to 20 years in the future (and even further in some rare cases)

    发行数量
    仅适用于某些类型的卡。如果被捕获并在授权请求中使用。

    Issue number
    Only available on certain card types. Should be captured and used in the authorization request.

    这篇关于信用卡校验和验证不需要连接到金融机构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 00:42