NAME
FormValidator::Simple::Plugin::CreditCard - credit card number validation
SYNOPSIS
my
$q
= CGI->new;
$q
->param(
number
=>
'5276 4400 6542 1319'
);
my
$result
= FormValidator::Simple->check(
$q
=> [
number
=> [
'CREDIT_CARD'
],
] );
DESCRIPTION
This modules provides credit card number validation.
CARD TYPE CHECK
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.
SEE ALSO
AUTHOR
Lyo Kato <lyo.kato@gmail.com>
COPYRIGHT AND LICENSE
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