Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- otherCreditCardNumberRegex :: String
- visaCreditCardNumberRegex :: String
- amexCreditCardNumberRegex :: String
- discoverCreditCardNumberRegex :: String
- mastercardCreditCardNumberRegex :: String
- dinerClubCreditCardNumberRegex :: String
- isValidCreditCardNumber :: Text -> Bool
- minNumberDigits :: Int
- maxNumberDigits :: Int
- creditCard :: Text -> Issuer -> CreditCardNumberData
Documentation
visaCreditCardNumberRegex :: String Source #
Visa credit card regex informed by latest BIN info
amexCreditCardNumberRegex :: String Source #
American Express credit card regex informed by latest BIN info
discoverCreditCardNumberRegex :: String Source #
Discover credit card regex informed by latest BIN info
mastercardCreditCardNumberRegex :: String Source #
Mastercard credit card regex informed by latest BIN info
dinerClubCreditCardNumberRegex :: String Source #
Diner Club credit card regex informed by latest BIN info
isValidCreditCardNumber :: Text -> Bool Source #
An implementation of the Luhn algorithm (see https://en.wikipedia.org/wiki/Luhn_algorithm) to check if a given credit card number is valid
creditCard :: Text -> Issuer -> CreditCardNumberData Source #