summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-04-02 14:48:48 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-04-02 14:48:48 -0500
commit748dfad30d5e3861773b72369bf074ddc02ac72b (patch)
tree16b91e5f1f9e0b9020abc810a497ce519648ca8f
parenta0011bf5a1f1aa762b9abf7e61dd3b4cac985fa0 (diff)
RT#33286: Direct Debit by BillBuddy for Bank Accounts [added handling of gateway_username/password for BatchPayment modules]
-rw-r--r--FS/FS/payment_gateway.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/FS/FS/payment_gateway.pm b/FS/FS/payment_gateway.pm
index 95b7c40..afae266 100644
--- a/FS/FS/payment_gateway.pm
+++ b/FS/FS/payment_gateway.pm
@@ -268,6 +268,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)