CleanCode Perl Libraries
Multi-Lingual Library Maintainability
available: Perl not available: Java available: JavaScript not available: Certified
Class
not available: Testable
Class
not available: Standalone
Mode
not available: Diagnostic
Enabled

NAME

CGI::PageValidator::Plugin::IsAmex - sets the constraints for an American Express credit card type.

SYNOPSIS

(See the Note on Plugins in the CheckItem class for usage notes.)

        use CGI::PageValidator::Plugin::IsAmex;
        $pluginObj=CGI::PageValidator::Plugin::IsAmex->new($libItem,
                "CCType", "1234", "visa", "CGI::PageValidator::PluginLib");
        $pluginObj->examine();
        $errMsg = $pluginObj->getResult();

EXTENDS

CGI::PageValidator::Plugin

REQUIRES

Perl5.005, CGI::PageValidator::Plugin

KNOWN PLUGIN ATTACHMENTS

CCAmexID

Dependent fields: CCType

DESCRIPTION

This plugin changes the parameters of the Amex ID depending on the credit card type. That is, if the card type is amex, the amex ID field is required; if the card type is not amex, then the amex ID is prohibited.

This plugin does not perform a validation check, it merely adjusts the required standard property, if necessary, which is subsequently used for validation checks by the calling CheckItem object.

BUGS

None

AUTHOR

Michael Sorens

VERSION

$Revision: 8 $ $Date: 2006-12-19 21:13:43 -0800 (Tue, 19 Dec 2006) $

SINCE

CleanCode 0.9


CleanCode Perl Libraries Copyright © 2001-2013 Michael Sorens - Revised 2013.06.30 Get CleanCode at SourceForge.net. Fast, secure and Free Open Source software downloads