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.

array
$_cardLength= 'array(
self::AMERICAN_EXPRESS => array(15)'
List of allowed CCV lengths
array(
self::AMERICAN_EXPRESS => array(15)
Details
array
$_cardType= 'array(
self::AMERICAN_EXPRESS => array('34''
List of accepted CCV provider tags
array(
self::AMERICAN_EXPRESS => array('34'
Details
array
$_messageTemplates= 'array(
self::CHECKSUM => "'%value%' seems to contain an invalid checksum"'
Validation failure message template definitions
array(
self::CHECKSUM => "'%value%' seems to contain an invalid checksum"
Details
addType(
string|array $type
)
:
\Zend_Validate_CreditCard
Adds a CCI to be accepted by validation
Name | Type | Description |
---|---|---|
$type | string|array | Type to allow for validation |
Type | Description |
---|---|
\Zend_Validate_CreditCard | Provides a fluid interface |

isValid(
string $value
)
:
boolean
Defined by Zend_Validate_Interface
Returns true if and only if $value follows the Luhn algorithm (mod-10 checksum)
Name | Type | Description |
---|---|---|
$value | string |
Type | Description |
---|---|
boolean |

setService(
\unknown_type $service
)
:
void
Sets a new callback for service validation
Name | Type | Description |
---|---|---|
$service | \unknown_type |

setType(
string|array $type
)
:
\Zend_Validate_CreditCard
Sets CCIs which are accepted by validation
Name | Type | Description |
---|---|---|
$type | string|array | Type to allow for validation |
Type | Description |
---|---|
\Zend_Validate_CreditCard | Provides a fluid interface |