Hi,
I've been having a problem with valid cards being rejected during the pre-validation for some time also.
I just had the problem with a visa card, and the customer gave me their info to process manually.
I entered the info manually through authorizenet and the card was accepted without a problem, so the pre-validation procedure is definitely where problem is happening.
For now, I've disabled the number validation by commenting out the return code in the first part of the validation function:
// return -1;
I then tried to enter the previously-rejected card, and it accepted it without a problem.
I'm not sure what the implication is of sending a bad card number to authorizenet, I guess I'll find out if it happens.
I'm also not sure what other security pitfall this might introduce, so I'm not recommending this as a permanent solution.
Is there any updated card number validation algorithm available?
thanks,
Ed