luhn_task:Luhn卡验证

时间:2021-07-01 08:38:46
【文件属性】:
文件名称:luhn_task:Luhn卡验证
文件大小:360KB
文件格式:ZIP
更新时间:2021-07-01 08:38:46
JavaScript 一个非常简单的应用程序,它使用 Luhn 的算法来检查信用卡号是否有效。 在向支付网关提交信用卡之前,对号码进行一些完整性检查非常重要。 预先执行的常见检查是根据卡号的起始数字和长度验证卡类型。 我们关心的主要模式如下: +============+=============+===============+ | Card Type | Begins With | Number Length | +============+=============+===============+ | AMEX | 34 or 37 | 15 | +------------+-------------+---------------+ | Discover | 6011 | 16 | +------------+-
【文件预览】:
luhn_task-master
----.gitignore(466B)
----app()
--------mailers()
--------assets()
--------models()
--------helpers()
--------views()
--------controllers()
----config.ru(154B)
----bin()
--------rails(220B)
--------bundle(129B)
--------spring(517B)
--------rake(164B)
----log()
--------.keep(0B)
----db()
--------migrate()
--------seeds.rb(343B)
--------schema.rb(993B)
----public()
--------robots.txt(202B)
--------assets()
--------422.html(2KB)
--------favicon.ico(0B)
--------500.html(1KB)
--------404.html(2KB)
----README.md(2KB)
----vendor()
--------assets()
----config()
--------boot.rb(170B)
--------secrets.yml(964B)
--------database.yml(601B)
--------routes.rb(2KB)
--------environments()
--------environment.rb(150B)
--------application.rb(978B)
--------locales()
--------initializers()
----lib()
--------assets()
--------tasks()
----Gemfile(1KB)
----Rakefile(249B)
----test()
--------mailers()
--------integration()
--------models()
--------helpers()
--------test_helper.rb(312B)
--------controllers()
--------fixtures()
----Gemfile.lock(3KB)

网友评论