RT# 80175 - fixed error with ACH gateway not being selected.
[freeside.git] / FS / FS / agent.pm
index 8107093..e1d9ccf 100644 (file)
@@ -294,7 +294,7 @@ sub payment_gateway {
     }
   }
 
-  my $cardtype_search = "AND cardtype != 'ACH'";
+  my $cardtype_search = "AND ( cardtype IS NULL OR cardtype <> 'ACH')";
   $cardtype_search = "AND cardtype = 'ACH'" if $options{method} eq 'ECHECK';
 
   my $override =