Home » Payment » Payment_Process » Bug #2755
CVV2 Field Map Bug
Details
| Submitted | 2004-11-15 15:33 UTC |
|---|---|
| From | josh at trutwins dot homeip dot net |
| Assigned | jstump |
| Status | Closed |
| Package | Payment_Process |
| PHP Version | 4.3.9 |
| OS | Linux Debian Stable |
| Roadmaps | (Not assigned) |
Comments
[2004-11-15 15:33 UTC] josh at trutwins dot homeip dot net
Description:
------------
According to the AIM API documentation for Authorize.NET, the CVV2 response code is field 39 in the delmitted response.
Payment_Process_AuthorizeNet has this mapped to index 39, but counting from zero this is actually field 40, the CAVV code.
var $_fieldMap = array('0' => 'code',
'2' => 'messageCode',
'3' => 'message',
'4' => 'approvalCode',
'5' => 'avsCode',
'6' => 'transactionId',
'7' => 'invoiceNumber',
'12' => 'customerId',
'39' => 'cvvCode'
);
Should be changed to:
var $_fieldMap = array('0' => 'code',
'2' => 'messageCode',
'3' => 'message',
'4' => 'approvalCode',
'5' => 'avsCode',
'6' => 'transactionId',
'7' => 'invoiceNumber',
'12' => 'customerId',
'38' => 'cvvCode'
);