[freeside-commits] branch master updated. 748dfad30d5e3861773b72369bf074ddc02ac72b

Jonathan Prykop jonathan at 420.am
Thu Apr 2 12:49:04 PDT 2015


The branch, master has been updated
       via  748dfad30d5e3861773b72369bf074ddc02ac72b (commit)
      from  a0011bf5a1f1aa762b9abf7e61dd3b4cac985fa0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 748dfad30d5e3861773b72369bf074ddc02ac72b
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Thu Apr 2 14:48:48 2015 -0500

    RT#33286: Direct Debit by BillBuddy for Bank Accounts [added handling of gateway_username/password for BatchPayment modules]

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)

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/payment_gateway.pm |    7 +++++++
 1 file changed, 7 insertions(+)




More information about the freeside-commits mailing list