X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpayment_gateway.pm;h=d2695ed46139f71b6bd1af3990b5d79440ceac64;hp=68d841855f485414010ee728e2d0b909d53f98c1;hb=d5523a70b46146a35943b79379526b64aa5cf146;hpb=d7c1839c14f0d37a352388b8df4086c47bedc6e5 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)