Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

FormValidator::Simple::Plugin::CreditCard
credit card number validation

FormValidator::Simple::Plugin::CreditCard - credit card number validation


NAME

FormValidator::Simple::Plugin::CreditCard - credit card number validation


SYNOPSIS


    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' ],

    ] );


DESCRIPTION

This modules provides credit card number validation.

See the Business::CreditCard manpage


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.

VISA
MASTER
DISCOVER
AMEX
DINERS
ENROUTE
JCB
BANKCARD
SWITCH
SOLO


SEE ALSO

the FormValidator::Simple manpage,

the Business::CreditCard manpage


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

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy