package FS::agent_payment_gateway;
use base qw(FS::Record);
+use FS::Record qw( qsearch );
use strict;
'table' => 'agent_payment_gateway',
'extra_sql' => ' WHERE taxclass IS NOT NULL AND taxclass != \'\'',
});
- die "Agent cardtype override no longer supported"
+ die "Non ACH (E-check) Agent cardtype override no longer supported"
if qsearch({
'table' => 'agent_payment_gateway',
- 'extra_sql' => ' WHERE cardtype IS NOT NULL AND cardtype != \'\'',
+ 'extra_sql' => ' WHERE cardtype IS NOT NULL AND cardtype != \'\' AND cardtype != \'ACH\'',
});
return '';
}