[freeside-commits] freeside/FS/FS payinfo_Mixin.pm,1.6,1.7

Ivan,,, ivan at wavetail.420.am
Sun May 4 18:18:49 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv9274

Modified Files:
	payinfo_Mixin.pm 
Log Message:
fix for using new payment duplicate stuff with cc encryption

Index: payinfo_Mixin.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/payinfo_Mixin.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- payinfo_Mixin.pm	1 Mar 2008 23:30:44 -0000	1.6
+++ payinfo_Mixin.pm	5 May 2008 01:18:47 -0000	1.7
@@ -216,7 +216,7 @@
   FS::payby->can_payby($self->table, $self->payby)
     or return "Illegal payby: ". $self->payby;
 
-  if ( $self->payby eq 'CARD' ) {
+  if ( $self->payby eq 'CARD' && ! $self->is_encrypted($self->payinfo) ) {
     my $payinfo = $self->payinfo;
     $payinfo =~ s/\D//g;
     $self->payinfo($payinfo);
@@ -227,7 +227,7 @@
       validate($self->payinfo) or return "Illegal credit card number";
       return "Unknown card type" if cardtype($self->payinfo) eq "Unknown";
     } else {
-      $self->payinfo('N/A');
+      $self->payinfo('N/A'); #???
     }
   } else {
     my $error = $self->ut_textn('payinfo');



More information about the freeside-commits mailing list