Name : perl-Business-CreditCard
| |
Version : 0.39
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 16:59:17
|
Group : Unspecified
| Source RPM : perl-Business-CreditCard-0.39-lp154.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Validate/generate credit card checksums/names
|
Description :
These subroutines tell you whether a credit card number is self-consistent -- whether the last digit of the number is a valid checksum for the preceding digits.
The validate_card() subroutine returns 1 if the card number provided passes the checksum test, and 0 otherwise.
The cardtype() subroutine returns a string containing the type of card. The list of possible return values is more comprehensive than it used to be, but additions are still most welcome.
Possible return values are:
VISA card MasterCard Discover card American Express card enRoute JCB BankCard Switch Solo China Union Pay Laser Isracard Unknown
\"Not a credit card\" is returned on obviously invalid data values.
Versions before 0.31 may also have returned \"Diner\'s Club/Carte Blanche\" (these cards are now recognized as \"Discover card\").
cardtype() will accept a partial card masked with \"x\", \"X\", \".\", \"*\" or \"_\". Only the first 2-6 digits and the length are significant; whitespace and dashes are removed. With two digits, Visa, MasterCard, Discover and Amex are recognized (versions before 0.36 needed four digits to recognize all Discover cards). With four digits, almost all cards except some Switch cards are recognized. With six digits (the full \"BIN\" or \"IIN\"), all cards are recognized. Six digits are also required for receipt_cardtype().
The generate_last_digit() subroutine computes and returns the last digit of the card given the preceding digits. With a 16-digit card, you provide the first 15 digits; the subroutine returns the sixteenth.
This module does _not_ tell you whether the number is on an actual card, only whether it might conceivably be on a real card. To verify whether a card is real, or whether it\'s been stolen, or to actually process charges, you need a Merchant account. See Business::OnlinePayment.
These subroutines will also work if you provide the arguments as numbers instead of strings, e.g. \'validate_card(5276440065421319)\'.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-B/15.4/noarch |