如何在我的购物车项目中验证万事达卡和维萨卡?

发布于 2024-09-01 19:50:19 字数 405 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

春庭雪 2024-09-08 19:50:19

要验证信用卡是否合法:

  1. 根据 Luhn 算法 验证信用卡。 (仅验证卡号的格式是否有效)
  2. 根据已知的发卡行识别号
  3. 仅执行授权(又名 AUTH ONLY),费用为 0.00 美元(如果您的处理器不支持零身份验证,则为 0.01 美元)。这是验证信用卡是否存在的唯一有保证的方法。

To validate a credit card is legitimate:

  1. Verify it against the Luhn Algorithm. (Will only validate the card number is in a valid format)
  2. Verify the card number against known Issuer Identification Numbers
  3. Perform an Authorization Only (aka AUTH ONLY) for $0.00 (or $0.01 if your processor does not support zero auths). This is the only guaranteed way to verify a credit card exists.
小猫一只 2024-09-08 19:50:19

嗯,恕我直言,无论如何你都需要一个支付提供商来使用信用卡支付——他们会给你一种 API 来检查数据。

Hum, imho you need a payment provider to use credit card payment anyway - they'll give you a kind of api to check the data against.

∞琼窗梦回ˉ 2024-09-08 19:50:19

为了至少验证代码是否有效,您可以尝试一下:
http://www.notesbit .com/index.php/web-mysql/web-scripts/luhn-algorithm-in-c/

To at least validate the code is valid you can give this a try:
http://www.notesbit.com/index.php/web-mysql/web-scripts/luhn-algorithm-in-c/

春庭雪 2024-09-08 19:50:19

http://www.mobilefish.com/services/credit_card_number_generator/credit_card_number_generator.php
检查之前的链接,它包含对 luhn alog 的良好描述,并且有信用卡生成器

http://www.mobilefish.com/services/credit_card_number_generator/credit_card_number_generator.php
Check previous link it contains good description for luhn alog and have credit card generator

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文