Php 检查输入的邮政编码是否与信用卡匹配';s的邮政编码
我正在写一个网络表单,让用户输入他们的邮政编码和信用卡号码,然后检查他们输入的邮政编码是否与存储在卡信息中的邮政编码匹配。我想我不能在authorize.net api上推卡号,他们会让我知道信息的Php 检查输入的邮政编码是否与信用卡匹配';s的邮政编码,php,credit-card,authorize.net,Php,Credit Card,Authorize.net,我正在写一个网络表单,让用户输入他们的邮政编码和信用卡号码,然后检查他们输入的邮政编码是否与存储在卡信息中的邮政编码匹配。我想我不能在authorize.net api上推卡号,他们会让我知道信息的 但是,如果我同时按下号码和邮政编码,是否可以让他们告诉我邮政编码是否匹配?这不能手动完成,因为您无法获得银行访问权限。但是可能会有帮助:)您无法通过编程实现这一点,因为该信息只能从发卡银行进行验证。因此,要做到这一点,您需要使用(AVS) 为此,您必须运行$0.00AUTH_ONLY交易,或者如果处
但是,如果我同时按下号码和邮政编码,是否可以让他们告诉我邮政编码是否匹配?这不能手动完成,因为您无法获得银行访问权限。但是可能会有帮助:)您无法通过编程实现这一点,因为该信息只能从发卡银行进行验证。因此,要做到这一点,您需要使用(AVS) 为此,您必须运行$0.00
AUTH_ONLY
交易,或者如果处理行不支持,则必须运行$0.01AUTH_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和其他工具。好吧,我想说的是,检查他们的文档!似乎已经有一个验证处于活动状态。