diff options
| author | ivan <ivan> | 2010-06-22 00:52:48 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2010-06-22 00:52:48 +0000 | 
| commit | f9b35bd1485703c783ed57f2648b880419506e86 (patch) | |
| tree | 6aae893a8d22b4656b893763fc2569c96c6c6a48 | |
| parent | 5427b1aa654f3527f00b7677e800a7a563029b5b (diff) | |
enable debugging for create_ticket call to pinpoint lockup
| -rw-r--r-- | FS/FS/ClientAPI/MyAccount.pm | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index 50dc89c73..2a36642f7 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -632,7 +632,7 @@ sub process_payment {      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 @@ sub process_payment {                      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 @@ sub create_ticket {    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(); | 
