Path to this page:
./
misc/p5-Business-CreditCard,
Perl5 module to validate/generate credit card checksums/names
Branch: CURRENT,
Version: 0.31,
Package name: p5-Business-CreditCard-0.31,
Maintainer: pkgsrc-usersThese 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() 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:
"MasterCard", "VISA", and so on. My list is not complete; I welcome
additions.
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.
These subroutines will also work if you provide the arguments as numbers
instead of strings, e.g. validate(5276440065421319).
Required to run:[
lang/perl5]
Master sites: (Expand)
SHA1: 10d75c254eb164170ae08dd66152b2f248c9625f
RMD160: 1fc70396af101f481d3489a873afb9f937806f4d
Filesize: 6.954 KB
Version history: (Expand)
- (2010-03-10) Updated to version: p5-Business-CreditCard-0.31
- (2008-10-20) Updated to version: p5-Business-CreditCard-0.30nb1
- (2008-07-22) Updated to version: p5-Business-CreditCard-0.30
- (2005-10-21) Updated to version: p5-Business-CreditCard-0.28
- (2005-10-05) Package added to pkgsrc.se, version p5-Business-CreditCard-0.27nb2 (created)
CVS history: (Expand)
| 2010-03-10 19:20:17 by Jens Rehsack | Files touched by this commit (3) |
Log message:
Updating misc/p5-Business-CreditCard from 0.30nb1 to 0.31
pkgsrc changes:
- Add license definition
- Remove files/Makefile.PL (is as good as upstream one)
- Explicitely tell, that no compiler is required
Upstream changes:
0.31 Mon Oct 19 18:51:35 PDT 2009
- Add LICENSE section to POD documentation
- Add META.yml to MANIFEST
- Add Irish Laser card, thanks to Eoin Redmond for the heads-up.
- Add documentation on what this module *is* and *is NOT* about.
- Spelling fix in docs
- correct misdocumentation of $Business::CreditCard::Country
- Move test.pl to test/t and change to using Test::More, modify
MANIFEST and Makefile.PL accordingly (thanks to Alexander Ciornii)
- Silence unwanted warnings (thanks to Alexander Ciornii)
- Discover cards starting with 644-649 are now recognized
- Most Diner's Club cards (300-305, 3095 and 36) now processed as
Discover
- China Union pay now includes 624-626 and 628 in addition to 622 (and
still identified as Discover outside China)
- JCB identified as Discover in the US
|
| 2008-10-19 21:19:25 by Havard Eidnes | Files touched by this commit (1179) |
Log message:
Bump the PKGREVISION for all packages which depend directly on perl,
to trigger/signal a rebuild for the transition 5.8.8 -> 5.10.0.
The list of packages is computed by finding all packages which end
up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl,
or PERL5_PACKLIST defined in their make setup (tested via
"make show-vars VARNAMES=...").
|
2008-07-17 16:02:14 by Havard Eidnes | Files touched by this commit (2) |  |
Log message:
Update from version 0.28 to 0.30. Changes:
0.30 Mon Dec 18 23:24:25 PST 2006
- back after two and a half years; happy hanukkah!
- added note about B:CC:Object
- added new Discover 65 prefix
- check for Switch before Visa as Switch has some BINs in ^4
- accept masked numbers in cardtype()
- add handling of card network peering arrangements, controllable via
$Business::CreditCard::Country
- identify Diner's club ^36 cards as MasterCard in US and Canada
- identify China Union Pay cards as Discover cards outside China
- identify China Union Pay cards
No recorded changes for 0.29 upstream.
|
| 2008-06-20 03:09:45 by Joerg Sonnenberger | Files touched by this commit (993) |
Log message:
Add DESTDIR support.
|
| 2007-10-25 18:59:59 by Johnny C. Lam | Files touched by this commit (980) |
Log message:
Remove empty PLISTs from pkgsrc since revision 1.33 of plist/plist.mk
can handle packages having no PLIST files.
|
| 2006-03-04 22:31:14 by Johnny C. Lam | Files touched by this commit (2257) |
Log message:
Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.
The rationale for changing this from "tech-pkg" to \
"pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list). Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
|
2005-10-20 19:27:46 by David Brownlee | Files touched by this commit (2) |  |
Log message:
Updated misc/p5-Business-CreditCard to 0.28
0.28 Thu Jul 1 01:17:32 PDT 2004
- added Switch and Solo cards, patch from Max Becker
- added proper Changes file
- added documentation on cardtype() return values from
tmurray@agronomy.org (closes: cpan #3330)
|
2005-08-06 08:19:41 by Johnny C. Lam | Files touched by this commit (634) |  |
Log message:
Bump the PKGREVISIONs of all (638) packages that hardcode the locations
of Perl files to deal with the perl-5.8.7 update that moved all
pkgsrc-installed Perl files into the "vendor" directories.
|