Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.6.8

Bug #14257 eCheckType is not defined and firstName/lastName not defined for AVS
Submitted: 2008-06-28 22:57 UTC
From: bigbluevan Assigned:
Status: Open Package: Payment_Process (version 0.6.6)
PHP Version: 5.2.5 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2008-06-28 22:57 UTC] bigbluevan (Clayton Smith)
Description: ------------ For AuthorizeNet... The x_echeck_type is not allowed to be set. Refer to page 7 of eCheck.pdf (http://developer.authorize.net/guides/eCheck.pdf). And, for echeck's, the firstName/lastName can be become required fields when the Address Verification Service is enabled.

Comments

 [2008-06-28 23:01 UTC] bigbluevan (Clayton Smith)
having issues uploading a patch... but here it is: diff -ru /opt/local/lib/php/PEAR/Payment/Process/AuthorizeNet.php Payment/Process/AuthorizeNet.php --- /opt/local/lib/php/PEAR/Payment/Process/AuthorizeNet.php 2008-06-28 14:59:19.000000000 -0500 +++ Payment/Process/AuthorizeNet.php 2008-06-28 17:33:28.000000000 -0500 @@ -126,10 +126,13 @@ ), 'eCheck' => array( + 'firstName' => 'x_first_name', + 'lastName' => 'x_last_name', 'routingCode' => 'x_bank_aba_code', 'accountNumber' => 'x_bank_acct_num', 'type' => 'x_bank_acct_type', - 'bankName' => 'x_bank_name' + 'bankName' => 'x_bank_name', + 'eCheckType' => 'x_echeck_type', ) ); diff -ru /opt/local/lib/php/PEAR/Payment/Process/Type/eCheck.php Payment/Process/Type/eCheck.php --- /opt/local/lib/php/PEAR/Payment/Process/Type/eCheck.php 2008-06-27 20:13:19.000000000 -0500 +++ Payment/Process/Type/eCheck.php 2008-06-28 16:42:04.000000000 -0500 @@ -43,6 +43,16 @@ */ /** + * eCheck Type codes for x_echeck_type + */ +define('PAYMENT_PROCESS_ECHECK_TYPE_ARC', 'ARC'); +define('PAYMENT_PROCESS_ECHECK_TYPE_BOC', 'BOC'); +define('PAYMENT_PROCESS_ECHECK_TYPE_CCD', 'CCD'); +define('PAYMENT_PROCESS_ECHECK_TYPE_PPD', 'PPD'); +define('PAYMENT_PROCESS_ECHECK_TYPE_TEL', 'TEL'); +define('PAYMENT_PROCESS_ECHECK_TYPE_WEB', 'WEB'); + +/** * Payment_Process_Type_eCheck * * @category Payment @@ -71,6 +81,7 @@ var $accountNumber; var $routingCode; var $bankName; + var $eCheckType; var $driversLicense; var $driversLicenseState;