BSD Ports

finance/p5-Business-CreditCard 0.39 FreeBSD

Perl5 module to validate/generate credit card checksums/names

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
finance, perl5
Package size
13.5 KiB, 24.3 KiB installed

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() 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.

In the other systems

SystemPortVersion
FreeBSDfinance/p5-Business-CreditCard0.39
OpenBSDmisc/p5-CreditCard0.39
NetBSDmisc/p5-Business-CreditCard0.39nb3
DragonFlyfinance/p5-Business-CreditCard0.39
HardenedBSDfinance/p5-Business-CreditCard0.39
GhostBSDfinance/p5-Business-CreditCard0.39

Install

Binary package:

pkg install p5-Business-CreditCard

From the ports tree:

cd /usr/ports/finance/p5-Business-CreditCard/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Business-CreditCard>0:finance/p5-Business-CreditCard

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.390.390.390.390.39
FreeBSD:14:quarterly0.390.39n/a0.390.39
FreeBSD:15:latest0.390.39n/a0.390.39
FreeBSD:15:quarterly0.390.39n/an/an/a
FreeBSD:16:latest0.390.39n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Business/CreditCard.pm
  • %%PERL5_MAN3%%/Business::CreditCard.3.gz
distinfo 1
FileSizeSHA256
Business-CreditCard-0.39.tar.gz11920c7c8a652d2977c8319ea86cd5e1c5be51bd4a6bfc37a5ec5cc0df4345ff450a2
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.