检查输入的邮政编码是否与信用卡的邮政编码相匹配

时间:2015-05-25 10:56:09

标签: php credit-card authorize.net

我正在写一个网页表单,让用户输入他们的邮政编码和信用卡号,然后检查他们输入的邮政编码是否与存储在卡信息中的邮政编码相符。我不认为我可以在authorize.net api上推送卡号,他们会告诉我这些信息。

但是,如果我同时推送数字和邮政编码,如果邮政编码匹配,是否可以让他们告诉我?

2 个答案:

答案 0 :(得分:1)

这不能手动完成,因为您无法访问银行。但是this可能会有所帮助:)

答案 1 :(得分:-1)

您无法以编程方式执行此操作,因为该信息仅可从发卡银行进行验证。因此,要执行此操作,您需要使用Address Verification System(AVS)。

要执行此操作,您必须运行$ 0.00 AUTH_ONLY交易,或者如果处理银行不支持,则运行$ 0.01 AUTH_ONLY,然后VOID撤消该交易。然后,您将收到AVS结果,如果提供的值正确,您可以使用该结果。 (您也可以正常处理您的AUTH_CAPTURE交易,然后在交易失败时回复VOID

这些是可能的响应值:

B    Address information was not submitted in the transaction information, so AVS check could not be performed
E    The AVS data provided is invalid, or AVS is not allowed for the card type submitted
R    AVS was unavailable at the time the transaction was processed. Retry transaction
G    The credit card issuing bank is of non-U.S. origin and does not support AVS
U    Address information is not available for the customer's credit card
S    The U.S. card issuing bank does not support AVS
N    Neither the street address nor the 5-digit ZIP code matches the address and ZIP code on file for the card
A    The street address matches, but the 5-digit ZIP code does not
Z    The first 5 digits of the ZIP code matches, but the street address does not match
W    The 9-digit ZIP code matches, but the street address does not match
Y    The street address and the first 5 digits of the ZIP code match perfectly

请记住,AVS通常只适用于美国。

此外,失败的AVS响应意味着信用卡被盗或交易是欺诈性的。它只是意味着用户输入的邮政编码与该信用卡的帐单邮寄地址不同。许多人有一个不同的家庭住址,然后是账单地址,通常输入他们家的拉链而不是卡的账单地址。 建议您根据失败的AVS响应拒绝事务。它应该是您使用的几个工具之一,其中包括CVV和其他工具。