For others interested, below should be a more complete list of testing
cc numbers for various providers:

$_ccNums = array(
    // american express
    'ae' => array('378282246310005', '371449635398431'),
    // american express corporate
    'aec' => array('378734493671000'),
    // diners club
    'dc' => array('30569309025904', '38520000023237'),
    // discover
    'dcv' => array('6011111111111117', '6011000990139424'),
    // jcb
    'jcb' => array('3530111333300000', '3566002020360505'),
    // Master Card
    'mc' => array('5555555555554444', '5105105105105100'),
    // Visa
    'visa' => array('4111111111111111', '4012888888881881', '4222222222222'),
);

Regards,
M.

On Thu, Apr 29, 2010 at 12:09 AM, Bradley Holt
<bradley.h...@foundline.com> wrote:
> On Wed, Apr 28, 2010 at 5:41 PM, Rob Riggen <r...@riggen.org> wrote:
>>
>> DISCLAIMER: my advice is not necessarily relevant to
>> Zend_Validate_CrediCard.
>> There's a universal test CC num of 4444333322221111 - not sure if that is
>> going to work in your case but technically that should validate...
>> I think it is a visa, though...
>
> Thanks, Rob! That "universal" test credit card number seemed to make both
> Zend_Validate_CreditCard and Authorize.Net's sandbox API happy. I hope it
> wasn't your credit card number ;-)
>
>>
>> Rob
>>
>> On Wed, Apr 28, 2010 at 5:29 PM, Bradley Holt <bradley.h...@foundline.com>
>> wrote:
>>>
>>> Has anyone else tried to use Zend_Validate_CreditCard with
>>> Authorize.Net's sandbox API? I've run into a problem that is making it
>>> difficult for me to test my application. The test credit card number that
>>> Authorize.Net provides for their sandbox API (4222222222222) is not a valid
>>> credit card number--at least according to Zend_Validate_CreditCard. It
>>> appears that Zend_Validate_CreditCard thinks this is a Visa credit card
>>> (since it starts with a '4') and that Visa credit cards should have a length
>>> of 16 characters but Authorize.Net's test credit card has a length of 13
>>> characters, causing it to fail validation. Has anyone either found other,
>>> valid, test credit numbers that work in Authorize.Net's sandbox API or found
>>> a simple way to get Zend_Validate_CreditCard to accept this as a valid
>>> credit card (at least in testing)?
>>>
>>> --
>>> Bradley Holt
>>> bradley.h...@foundline.com
>>>
>>
>
>
>
> --
> Bradley Holt
> bradley.h...@foundline.com
>
>

Reply via email to