Subject: | Patch to add support for CVV2 field |
This has already been commited to CVS, I'm putting this up in the meanwhile
in case anybody needs to add CVV2 to Authorize.net.
This patch simply adds a cvv2
field. cvv2 is an extra number on the back of the credit card to help
prevent credit card fraud, which authorize.net supports (it is optional).
--- AuthorizeNet.pm.orig Mon Jul 29 18:53:14 2002
+++ AuthorizeNet.pm Mon Jul 29 19:12:30 2002
@@ -101,6 +101,7 @@
email => 'x_Email',
company => 'x_Company',
order_number => 'x_Trans_ID',
+ cvv2 => 'x_Card_Code',
);
if($self->transaction_type() eq "ECHECK") {
@@ -128,7 +129,8 @@
x_Last_Name x_First_Name x_Address
x_City x_State x_Zip x_Country x_Phone
x_Fax x_Email x_Email_Customer
- x_Company x_Country x_Trans_ID/);
+ x_Company x_Country x_Trans_ID
+ x_Card_Code/);
$post_data{'x_Test_Request'} = $self->test_transaction()?"TRUE":"FALSE";
$post_data{'x_ADC_Delim_Data'} = 'TRUE';
$post_data{'x_ADC_URL'} = 'FALSE';