FormValidator::Simple::Plugin::CreditCard - credit card number validation
use FormValidator::Simple qw/CreditCard/; my $q = CGI->new; $q->param( number => '5276 4400 6542 1319' ); my $result = FormValidator::Simple->check( $q => [ number => [ 'CREDIT_CARD' ], ] );
This modules provides credit card number validation.
See Business::CreditCard
You can also check card type.
my $result = FormValidator::Simple->check( $q => [ number => [ ['CREDIT_CARD', 'VISA', 'MASTER' ] ], ] );
In this sample, it returns true if the number is Visa Card or Master Card. You can choose card type from follow listing.
FormValidator::Simple,
Business::CreditCard
Lyo Kato <lyo.kato@gmail.com>
Copyright (C) 2005 by Lyo Kato
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself
To install FormValidator::Simple::Plugin::CreditCard, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FormValidator::Simple::Plugin::CreditCard
CPAN shell
perl -MCPAN -e shell install FormValidator::Simple::Plugin::CreditCard
For more information on module installation, please visit the detailed CPAN module installation guide.