Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
string ALL = 'All'
Detected CCI list
Details AMERICAN_EXPRESS = 'American_Express'
Details UNIONPAY = 'Unionpay'
Details DINERS_CLUB = 'Diners_Club'
Details DINERS_CLUB_US = 'Diners_Club_US'
Details DISCOVER = 'Discover'
Details JCB = 'JCB'
Details LASER = 'Laser'
Details MAESTRO = 'Maestro'
Details MASTERCARD = 'Mastercard'
Details SOLO = 'Solo'
Details VISA = 'Visa'
Details CHECKSUM = 'creditcardChecksum'
Details CONTENT = 'creditcardContent'
Details INVALID = 'creditcardInvalid'
Details LENGTH = 'creditcardLength'
Details PREFIX = 'creditcardPrefix'
Details SERVICE = 'creditcardService'
Details SERVICEFAILURE = 'creditcardServiceFailure'
Detailsarray $_cardLength = 'array'List of allowed CCV lengths
Detailsarray $_cardType = 'array'List of accepted CCV provider tags
Detailsarray $_messageTemplates = 'array'Validation failure message template definitions
Detailscallback $_service = ''Service callback for additional validation
Detailsarray $_type = 'array'CCIs which are accepted by validation
Details__construct(
$options
=
array
)
:
Constructor
DetailsaddType(
string|array $type
)
:
Zend_Validate_CreditCardAdds a CCI to be accepted by validation
DetailsgetService(
)
:
callbackReturns the actual set service
DetailsgetType(
)
:
arrayReturns a list of accepted CCIs
DetailsisValid(
string $value
)
:
booleanDefined by Zend_Validate_Interface
Returns true if and only if $value follows the Luhn algorithm (mod-10 checksum)
DetailssetService(
unknown_type $service
)
:
Sets a new callback for service validation
DetailssetType(
string|array $type
)
:
Zend_Validate_CreditCardSets CCIs which are accepted by validation
Details