RT# 80175 - changed gateway selection to select either ACH or NULL for echeck payments
[freeside.git] / FS / FS / agent.pm
index e1d9ccf..8aff96a 100644 (file)
@@ -295,7 +295,7 @@ sub payment_gateway {
   }
 
   my $cardtype_search = "AND ( cardtype IS NULL OR cardtype <> 'ACH')";
-  $cardtype_search = "AND cardtype = 'ACH'" if $options{method} eq 'ECHECK';
+  $cardtype_search = "AND ( cardtype IS NULL OR cardtype = 'ACH' )" if $options{method} eq 'ECHECK';
 
   my $override =
       qsearchs({