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
| System | Port | Version |
|---|---|---|
| FreeBSD | finance/p5-Business-CreditCard | 0.39 |
| OpenBSD | misc/p5-CreditCard | 0.39 |
| NetBSD | misc/p5-Business-CreditCard | 0.39nb3 |
| DragonFly | finance/p5-Business-CreditCard | 0.39 |
| HardenedBSD | finance/p5-Business-CreditCard | 0.39 |
| GhostBSD | finance/p5-Business-CreditCard | 0.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.39 | 0.39 | 0.39 | 0.39 | 0.39 |
| FreeBSD:14:quarterly | 0.39 | 0.39 | n/a | 0.39 | 0.39 |
| FreeBSD:15:latest | 0.39 | 0.39 | n/a | 0.39 | 0.39 |
| FreeBSD:15:quarterly | 0.39 | 0.39 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.39 | 0.39 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
Required by 13
- finance/p5-Business-OnlinePayment-2CheckOut
- finance/p5-Business-OnlinePayment-BankOfAmerica
- finance/p5-Business-OnlinePayment-Cardstream
- finance/p5-Business-OnlinePayment-Jettis
- finance/p5-Business-OnlinePayment-LinkPoint
- finance/p5-Business-OnlinePayment-Network1Financial
- finance/p5-Business-OnlinePayment-PayConnect
- finance/p5-Business-OnlinePayment-PaymentsGateway
- finance/p5-Business-OnlinePayment-SurePay
- finance/p5-Business-OnlinePayment-TCLink
- finance/p5-Business-OnlinePayment-VirtualNet
- finance/p5-Business-OnlinePayment-eSec
- finance/p5-Business-WorldPay-Junior
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
| File | Size | SHA256 |
|---|---|---|
| Business-CreditCard-0.39.tar.gz | 11920 | c7c8a652d2977c8319ea86cd5e1c5be51bd4a6bfc37a5ec5cc0df4345ff450a2 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.