From: Christopher Burger Date: Fri, 28 Sep 2018 13:58:50 +0000 (-0400) Subject: Merge branch 'master' of ssh://git.freeside.biz/home/git/freeside X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=8fe6c833babe44bb707b8c47273b04fe39edfbaf;hp=9e9168c1e83f5e33e3a09299a3e72d0d9ae7a237 Merge branch 'master' of ssh://git.freeside.biz/home/git/freeside --- diff --git a/FS/FS/pay_batch/paymentech.pm b/FS/FS/pay_batch/paymentech.pm index bb2c2588d..094d50114 100644 --- a/FS/FS/pay_batch/paymentech.pm +++ b/FS/FS/pay_batch/paymentech.pm @@ -67,12 +67,8 @@ my $gateway; $hash->{'error_message'} = $hash->{'procStatusMessage'}; } }, - 'approved' => sub { my $hash = shift; - $hash->{'approvalStatus'} - }, - 'declined' => sub { my $hash = shift; - ! $hash->{'approvalStatus'} - }, + 'approved' => sub { shift->{'approvalStatus'} == 1 }, + 'declined' => sub { shift->{'approvalStatus'} != 1 }, ); my %paytype = ( diff --git a/FS/bin/freeside-paymentech-download b/FS/bin/freeside-paymentech-download index 9a1f609bc..4d99df2d0 100755 --- a/FS/bin/freeside-paymentech-download +++ b/FS/bin/freeside-paymentech-download @@ -62,7 +62,7 @@ while ($ssh_retry > 0) { $sftp = Net::SFTP::Foreign->new( host => $host, user => $username, password => $password, - timeout => 30, + timeout => 300, ); last unless $sftp->error; $ssh_retry -= 1; diff --git a/FS/bin/freeside-paymentech-upload b/FS/bin/freeside-paymentech-upload index 799e6c42c..770239d8d 100755 --- a/FS/bin/freeside-paymentech-upload +++ b/FS/bin/freeside-paymentech-upload @@ -97,7 +97,7 @@ while ($ssh_retry > 0) { $sftp = Net::SFTP::Foreign->new( host => $host, user => $username, password => $password, - timeout => 30, + timeout => 300, ); last unless $sftp->error; $ssh_retry -= 1;