projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
50a2633
)
eliminate warnings from Business::CreditCard about being passed an empty number
author
ivan
<ivan>
Sat, 24 Oct 2009 00:16:27 +0000
(
00:16
+0000)
committer
ivan
<ivan>
Sat, 24 Oct 2009 00:16:27 +0000
(
00:16
+0000)
FS/FS/agent.pm
patch
|
blob
|
history
diff --git
a/FS/FS/agent.pm
b/FS/FS/agent.pm
index
28d191a
..
f174275
100644
(file)
--- 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';