projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d7c1839
)
RT#33286: Direct Debit by BillBuddy for Bank Accounts [added handling of gateway_user...
author
Jonathan Prykop
<jonathan@freeside.biz>
Thu, 2 Apr 2015 19:48:48 +0000
(14:48 -0500)
committer
Jonathan Prykop
<jonathan@freeside.biz>
Fri, 3 Apr 2015 21:21:55 +0000
(16:21 -0500)
FS/FS/payment_gateway.pm
patch
|
blob
|
history
diff --git
a/FS/FS/payment_gateway.pm
b/FS/FS/payment_gateway.pm
index
68d8418
..
d2695ed
100644
(file)
--- a/
FS/FS/payment_gateway.pm
+++ b/
FS/FS/payment_gateway.pm
@@
-277,6
+277,13
@@
sub batch_processor {
eval "use Business::BatchPayment;";
die "couldn't load Business::BatchPayment: $@" if $@;
eval "use Business::BatchPayment;";
die "couldn't load Business::BatchPayment: $@" if $@;
+ #false laziness with processor
+ foreach (qw(username password)) {
+ if (length($self->get("gateway_$_"))) {
+ $opt{$_} = $self->get("gateway_$_");
+ }
+ }
+
my $module = $self->gateway_module;
my $processor = eval {
Business::BatchPayment->create($module, $self->options, %opt)
my $module = $self->gateway_module;
my $processor = eval {
Business::BatchPayment->create($module, $self->options, %opt)