Reputation: 1539
I have a question about validating CVV on transactions, using Authorize.net.
Using this code.
$transaction = new \AuthorizeNetAIM($loginId, $transactionKey);
$transaction->amount = $this->_amount;
$transaction->card_num = $this->_cardNumber;
$transaction->exp_date = $this->_expiryDate;
Where do I set CVV code, for checking ? I searched the AuthorizeNetAIM class for a method but there is no one, is it done via setField() method ?
So it would be $payment->setField('card_code', 123);
?
I mean, I read that it is's purpose is not to be used a password, but rather to detect if we are dealing with possible frauds...
Btw, I implemented that simple check which detects if count of chars is okay, based on a card type.
Upvotes: 0
Views: 915
Reputation: 8583
You need to use the following guide, there are certain numbers which will give you certain errors. http://developer.authorize.net/tools/errorgenerationguide/
Upvotes: 1