use Date::Format 'time2str';
use Date::Parse 'str2time';
use FS::Conf;
-use XML::Simple qw(XMLin XMLout);
my $conf;
my ($bin, $merchantID, $terminalID, $username);
%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 $pay_batch = shift;
my @cust_pay_batch = @{(shift)};
my $count = 0;
- XMLout( {
+ XML::Simple::XMLout( {
transRequest => {
RequestCount => scalar(@cust_pay_batch),
batchFileID => {