Question

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.

Was it helpful?

Solution

You need to use the following guide, there are certain numbers which will give you certain errors. http://developer.authorize.net/tools/errorgenerationguide/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top