On Wed, Apr 28, 2010 at 5:41 PM, Rob Riggen <[email protected]> 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 
> <[email protected]>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
>> [email protected]
>>
>>
>


-- 
Bradley Holt
[email protected]

Reply via email to