X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fagent.pm;h=f17427517e8c274def42fcdde19c3a53fd05f9c4;hb=f0097d06a2a96a49340fc2420f1713aa692d45a8;hp=28d191a153da3fc76f4f07a147a46427ceab126c;hpb=a83a000a027d1272e813259d09230d701d84df64;p=freeside.git 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';