projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Load XML::Simple at runtime to avoid breakage
[freeside.git]
/
FS
/
FS
/
pay_batch
/
paymentech.pm
diff --git
a/FS/FS/pay_batch/paymentech.pm
b/FS/FS/pay_batch/paymentech.pm
index
33a9fda
..
44fa78a
100644
(file)
--- a/
FS/FS/pay_batch/paymentech.pm
+++ b/
FS/FS/pay_batch/paymentech.pm
@@
-6,7
+6,6
@@
use Time::Local;
use Date::Format 'time2str';
use Date::Parse 'str2time';
use FS::Conf;
use Date::Format 'time2str';
use Date::Parse 'str2time';
use FS::Conf;
-use XML::Simple qw(XMLin XMLout);
my $conf;
my ($bin, $merchantID, $terminalID, $username);
my $conf;
my ($bin, $merchantID, $terminalID, $username);
@@
-49,6
+48,9
@@
my %paytype = (
%export_info = (
init => sub {
%export_info = (
init => sub {
+# Load this at run time
+ eval "use XML::Simple";
+ die $@ if $@;
my $conf = shift;
($bin, $terminalID, $merchantID, $username) =
$conf->config('batchconfig-paymentech');
my $conf = shift;
($bin, $terminalID, $merchantID, $username) =
$conf->config('batchconfig-paymentech');
@@
-58,7
+60,7
@@
my %paytype = (
my $pay_batch = shift;
my @cust_pay_batch = @{(shift)};
my $count = 0;
my $pay_batch = shift;
my @cust_pay_batch = @{(shift)};
my $count = 0;
- XMLout( {
+ XML
::Simple::XML
out( {
transRequest => {
RequestCount => scalar(@cust_pay_batch),
batchFileID => {
transRequest => {
RequestCount => scalar(@cust_pay_batch),
batchFileID => {