summaryrefslogtreecommitdiff
path: root/FS/FS/agent.pm
diff options
context:
space:
mode:
authorivan <ivan>2009-10-24 00:16:27 +0000
committerivan <ivan>2009-10-24 00:16:27 +0000
commit533ec07f55d88660646c12ecec467b2946b6924f (patch)
treefa76d612e9cc202b94db90a7997e23e0ef8130b9 /FS/FS/agent.pm
parent50a2633bf3c8e4be5bb1f6bdd4a2cc8bd6b954a9 (diff)
eliminate warnings from Business::CreditCard about being passed an empty number
Diffstat (limited to 'FS/FS/agent.pm')
-rw-r--r--FS/FS/agent.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm
index 28d191a..f174275 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';