[interchange-cvs] interchange - jon modified lib/Vend/Payment/AuthorizeNet.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Wed Nov 14 19:16:16 EST 2007


User:      jon
Date:      2007-11-15 00:16:16 GMT
Modified:  lib/Vend/Payment AuthorizeNet.pm
Log:
Support auto-cleared mv_credit_card_cvv2 if cvv2 isn't set, and send customer IP.

Patch by Randy Moore <ramoore at axion-it.com>. Thanks!

Revision  Changes    Path
2.19      +3 -2      interchange/lib/Vend/Payment/AuthorizeNet.pm


rev 2.19, prev_rev 2.18
Index: AuthorizeNet.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Payment/AuthorizeNet.pm,v
retrieving revision 2.18
retrieving revision 2.19
diff -u -u -r2.18 -r2.19
--- AuthorizeNet.pm	9 Aug 2007 13:40:55 -0000	2.18
+++ AuthorizeNet.pm	15 Nov 2007 00:16:16 -0000	2.19
@@ -3,7 +3,7 @@
 # Connection routine for AuthorizeNet version 3 using the 'ADC Direct Response'
 # method.
 #
-# $Id: AuthorizeNet.pm,v 2.18 2007/08/09 13:40:55 pajamian Exp $
+# $Id: AuthorizeNet.pm,v 2.19 2007/11/15 00:16:16 jon Exp $
 #
 # Copyright (C) 2003-2007 Interchange Development Group, http://www.icdevgroup.org/
 # Copyright (C) 1999-2002 Red Hat, Inc.
@@ -437,7 +437,8 @@
 		x_Method				=> 'CC',
 		x_Card_Num				=> $actual->{mv_credit_card_number},
 		x_Exp_Date				=> $exp,
-		x_Card_Code				=> $actual->{cvv2},
+		x_Card_Code				=> $actual->{cvv2} || $actual->{mv_credit_card_cvv2},
+		x_Customer_IP			=> $Vend::Session->{ohost},
 		x_Trans_ID				=> $actual->{order_id},
 		x_Auth_Code				=> $actual->{auth_code},
 		x_Invoice_Num			=> $actual->{mv_order_number},








More information about the interchange-cvs mailing list