Type: | Package |
Title: | Checks if a Number is Valid Using the Luhn Algorithm |
Version: | 1.1.0 |
Description: | Confirms if the number is Luhn compliant. Can check if credit card, IMEI number or any other Luhn based number is correct. For more info see: https://en.wikipedia.org/wiki/Luhn_algorithm. |
URL: | https://github.com/adamjdeacon/checkLuhn |
BugReports: | https://github.com/adamjdeacon/checkLuhn/issues |
Depends: | R (≥ 3.1.2) |
Imports: | utils, dplyr, stringr |
License: | GPL-2 |
Encoding: | UTF-8 |
LazyData: | true |
RoxygenNote: | 6.1.0 |
Suggests: | testthat |
NeedsCompilation: | no |
Packaged: | 2018-09-24 16:11:24 UTC; adeacon |
Author: | Adam Deacon [aut, cre], Karina Marks [ctb], Owen Jones [ctb] |
Maintainer: | Adam Deacon <adam@deaconsworld.org.uk> |
Repository: | CRAN |
Date/Publication: | 2018-09-24 16:20:03 UTC |
Functions and data for working with credit and debit cards
Description
Contains function for confirm if card numbers are valid and getting information about the card scheme and issuer see the repo at https://github.com/adamjdeacon/checkLuhn.
Author(s)
Adam Deacon (adam@deaconsworld.org.uk)
BIN ranges
Description
A dataset containing the top level BIN ranges for card issuers
Usage
bin_ranges
Format
A data frame with 48 rows:
- issuer
The card issuer
- start
start of card range
- end
end of card range
- active
Is card still available
- length
Length of PAN
Source
https://www.bincodes.com/bin-list
Checks number is Luhn compliant
Description
Checks number is Luhn compliant
Usage
checkLuhn(number)
Arguments
number |
The number to be checked |
Examples
checkLuhn('4111 1111 1111 1111')
issuer
Description
Attempts to return the issuer and if the scheme is still active.
Usage
issuer(number)
Arguments
number |
PAN to look up |
Value
A dataframe of the issuer and if the scheme is active
Examples
issuer('4111 1111 1111 1111')