diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-04-02 14:48:48 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-04-03 16:21:55 -0500 |
commit | d5523a70b46146a35943b79379526b64aa5cf146 (patch) | |
tree | bf7876e0d1260874968caa23c5509642a9185751 /FS | |
parent | d7c1839c14f0d37a352388b8df4086c47bedc6e5 (diff) |
RT#33286: Direct Debit by BillBuddy for Bank Accounts [added handling of gateway_username/password for BatchPayment modules]
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/payment_gateway.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/FS/FS/payment_gateway.pm b/FS/FS/payment_gateway.pm index 68d841855..d2695ed46 100644 --- 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 $@; + #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) |