X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fagent.pm;h=f17427517e8c274def42fcdde19c3a53fd05f9c4;hp=28d191a153da3fc76f4f07a147a46427ceab126c;hb=20f38e4c256094bd938b732950e8f93319f851a5;hpb=e4a707839edd433eac3f766c6106e06842d7428e diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm index 28d191a15..f17427517 100644 --- a/FS/FS/agent.pm +++ b/FS/FS/agent.pm @@ -247,7 +247,7 @@ sub payment_gateway { #look for an agent gateway override first my $cardtype; - if ( $options{method} && $options{method} eq 'CC' ) { + if ( $options{method} && $options{method} eq 'CC' && $options{payinfo} ) { $cardtype = cardtype($options{payinfo}); } elsif ( $options{method} && $options{method} eq 'ECHECK' ) { $cardtype = 'ACH';