/clj-luhn

A clojure library to validate credit card numbers that use the Luhn algorithm

Primary LanguageClojureEclipse Public License 1.0EPL-1.0

clj-luhn

A Clojure library designed to validate credit card numbers that use the Luhn algorithm.

Usage

(clj-luhn/valid? 49927398716)
;=> true
(clj-luhn/valid? 79927398710)
;=> false
(clj-luhn/check-digit 79927398710)
;=> 3

Installation

Clojars Project

License

Copyright © 2015 Brian Cain

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.