Package 'checkLuhn'

Title: Checks if a Number is Valid Using the Luhn Algorithm
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>.
Authors: Adam Deacon [aut, cre], Karina Marks [ctb], Owen Jones [ctb]
Maintainer: Adam Deacon <[email protected]>
License: GPL-3
Version: 1.1.0
Built: 2025-02-07 03:26:13 UTC
Source: https://github.com/adamjdeacon/checkluhn

Help Index


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 ([email protected])


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')