[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.95.2.11, 1.95.2.12

Ivan,,, ivan at wavetail.420.am
Mon Jun 21 17:52:50 PDT 2010


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

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	MyAccount.pm 
Log Message:
enable debugging for create_ticket call to pinpoint lockup

Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.95.2.11
retrieving revision 1.95.2.12
diff -u -w -d -r1.95.2.11 -r1.95.2.12
--- MyAccount.pm	16 Feb 2010 18:36:43 -0000	1.95.2.11
+++ MyAccount.pm	22 Jun 2010 00:52:48 -0000	1.95.2.12
@@ -632,7 +632,7 @@
     validate($payinfo)
       or return { 'error' => gettext('invalid_card') }; # . ": ". $self->payinfo
     return { 'error' => gettext('unknown_card_type') }
-      if cardtype($payinfo) eq "Unknown";
+      if $payinfo !~ /^99\d{14}$/ && cardtype($payinfo) eq "Unknown";
 
     if ( length($p->{'paycvv'}) && $p->{'paycvv'} !~ /^\s*$/ ) {
       if ( cardtype($payinfo) eq 'American Express card' ) {
@@ -683,7 +683,7 @@
                     stateid stateid_state );
       $new->set( 'payby' => $p->{'auto'} ? 'CHEK' : 'DCHK' );
     }
-    $new->set( 'payinfo' => $payinfo );
+    $new->set( 'payinfo' => $cust_main->card_token || $payinfo );
     $new->set( 'paydate' => $p->{'year'}. '-'. $p->{'month'}. '-01' );
     my $error = $new->replace($cust_main);
     if ( $error ) {
@@ -1669,6 +1669,10 @@
   my($context, $session, $custnum) = _custoragent_session_custnum($p);
   return { 'error' => $session } if $context eq 'error';
 
+  local($DEBUG) = 1;
+  local($FS::TicketSystem::RT_Internal::DEBUG) = 1;
+  local($FS::TicketSystem::RT_Internal::DEBUG) = 1;
+
   warn "$me create_ticket: initializing ticket system\n" if $DEBUG;
   FS::TicketSystem->init();
 



More information about the freeside-commits mailing list