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

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Thu Sep 11 17:12:00 EDT 2003


User:      kwalsh
Date:      2003-09-11 20:12:56 GMT
Modified:  lib/Vend/Payment AuthorizeNet.pm
Log:
	* Added a "x_ADC_Delim_Character" (set to \037, which is ASCII US)
	  to replace the default field separator (,).  A comma isn't a
	  very useful default, as people tend to use them in their address.

	  Problem reported, and fix tested, by John Young in IRC.

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


rev 2.12, prev_rev 2.11
Index: AuthorizeNet.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Payment/AuthorizeNet.pm,v
retrieving revision 2.11
retrieving revision 2.12
diff -u -r2.11 -r2.12
--- AuthorizeNet.pm	10 Sep 2003 15:58:52 -0000	2.11
+++ AuthorizeNet.pm	11 Sep 2003 20:12:56 -0000	2.12
@@ -3,7 +3,7 @@
 # Connection routine for AuthorizeNet version 3 using the 'ADC Direct Response'
 # method.
 #
-# $Id: AuthorizeNet.pm,v 2.11 2003/09/10 15:58:52 mheins Exp $
+# $Id: AuthorizeNet.pm,v 2.12 2003/09/11 20:12:56 kwalsh Exp $
 #
 # Copyright (C) 2003 Interchange Development Group, http://www.icdevgroup.org/
 # Copyright (C) 1999-2002 Red Hat, Inc.
@@ -412,6 +412,7 @@
 		x_Version				=> '3.1',
 		x_ADC_URL				=> 'FALSE',
 		x_ADC_Delim_Data		=> 'TRUE',
+		x_ADC_Delim_Character	=> "\037",
     );
 
     my @query;
@@ -497,7 +498,7 @@
 			x_cvv2_resp_code			
 		/
 		}
-		 = split (/,/,$page);
+		 = split (/\037/,$page);
     	
 #::logDebug(qq{authorizenet response_reason_text=$result{x_response_reason_text} response_code: $result{x_response_code}});    	
 







More information about the interchange-cvs mailing list