PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Payment » Payment_Process » Bug #2755

CVV2 Field Map Bug

Details

Submitted2004-11-15 15:33 UTC
Fromjosh at trutwins dot homeip dot net
Assignedjstump
StatusClosed
PackagePayment_Process
PHP Version4.3.9
OSLinux 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'
);