1Validation::Class::DireUcsteirveC:o:nCtrreidbiuttVceaadlridPd(ea3rt)lioDno:c:uCmleanstsa:t:iDoinrective::Creditcard(3)
2
3
4

NAME

6       Validation::Class::Directive::Creditcard - Creditcard Directive for
7       Validation Class Field Definitions
8

VERSION

10       version 7.900057
11

SYNOPSIS

13           use Validation::Class::Simple;
14
15           my $rules = Validation::Class::Simple->new(
16               fields => {
17                   person_cc  => {
18                       creditcard => 1
19                   }
20               }
21           );
22
23           # set parameters to be validated
24           $rules->params->add($parameters);
25
26           # validate
27           unless ($rules->validate) {
28               # handle the failures
29           }
30

DESCRIPTION

32       Validation::Class::Directive::Creditcard is a core validation class
33       field directive that provides validation for american express,
34       bankcard, diners card, discover card, electron,  enroute, jcb, maestro,
35       mastercard, solo, switch, visa and voyager credit cards.
36
37       ·       alternative argument: an-array-of-options
38
39       ·       option: amex
40
41       ·       option: bankcard
42
43       ·       option: diners
44
45       ·       option: disc
46
47       ·       option: electron
48
49       ·       option: enroute
50
51       ·       option: jcb
52
53       ·       option: maestro
54
55       ·       option: mastercard
56
57       ·       option: solo
58
59       ·       option: switch
60
61       ·       option: visa
62
63       ·       option: voyager
64
65               This directive can be passed a single value or an array of
66               values:
67
68                   fields => {
69                       person_cc  => {
70                           creditcard => ['visa', 'mastercard']
71                       }
72                   }
73

AUTHOR

75       Al Newkirk <anewkirk@ana.io>
76
78       This software is copyright (c) 2011 by Al Newkirk.
79
80       This is free software; you can redistribute it and/or modify it under
81       the same terms as the Perl 5 programming language system itself.
82
83
84
85perl v5.30.1                      20V2a0l-i0d1a-t3i0on::Class::Directive::Creditcard(3)
Impressum