[freeside-commits] freeside/FS/FS/pay_batch paymentech.pm,1.1,1.2
Mark Wells
mark at wavetail.420.am
Sat Oct 3 13:22:22 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/pay_batch
In directory wavetail.420.am:/tmp/cvs-serv26418/FS/FS/pay_batch
Modified Files:
paymentech.pm
Log Message:
Load XML::Simple at runtime to avoid breakage
Index: paymentech.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/pay_batch/paymentech.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- paymentech.pm 25 Sep 2009 02:30:20 -0000 1.1
+++ paymentech.pm 3 Oct 2009 20:22:19 -0000 1.2
@@ -6,7 +6,6 @@
use Date::Format 'time2str';
use Date::Parse 'str2time';
use FS::Conf;
-use XML::Simple qw(XMLin XMLout);
my $conf;
my ($bin, $merchantID, $terminalID, $username);
@@ -49,6 +48,9 @@
%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');
@@ -58,7 +60,7 @@
my $pay_batch = shift;
my @cust_pay_batch = @{(shift)};
my $count = 0;
- XMLout( {
+ XML::Simple::XMLout( {
transRequest => {
RequestCount => scalar(@cust_pay_batch),
batchFileID => {
More information about the freeside-commits
mailing list