RT# 82010 Disable a debug flag, improve speed of selfservice
[freeside.git] / FS / FS / ClientAPI / Signup.pm
index 7fad7b3..5ff4628 100644 (file)
@@ -28,7 +28,7 @@ use FS::banned_pay;
 use FS::part_tag;
 use FS::cust_payby;
 
-$DEBUG = 1;
+$DEBUG = 0;
 $me = '[FS::ClientAPI::Signup]';
 
 =head1 NAME
@@ -794,8 +794,8 @@ sub new_customer {
          depend_jobnum => $placeholder->jobnum,
          selfservice   => 1,
       );
-      #warn "$me error collecting from new customer: $bill_error"
-      #  if $bill_error;
+      warn "$me error collecting from new customer: $bill_error"
+        if $bill_error && !ref($bill_error);
     }
 
     if ($bill_error && ref($bill_error) eq 'HASH') {
@@ -1104,7 +1104,7 @@ sub capture_payment {
   my $conf = new FS::Conf;
 
   my $url = $packet->{url};
-  my $payment_gateway = $payment_gateway = qsearchs('payment_gateway', 
+  my $payment_gateway = qsearchs('payment_gateway', 
         { 'gateway_callback_url' => popurl(0, $url) } 
       );
   if (!$payment_gateway) {