X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpayment_gateway.pm;h=afae2667edcd8e862692a1c80ab0427c35749068;hp=95b7c40c85ee5d7b14d4443ea8ad25241806fc72;hb=29d80a8582103ead0b5910391cabc45cb85fa836;hpb=32072dbf59a054529f5304574c0f56f9567d14d0 diff --git a/FS/FS/payment_gateway.pm b/FS/FS/payment_gateway.pm index 95b7c40c8..afae2667e 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)