[freeside-commits] branch FREESIDE_4_BRANCH updated. 4af1201514d154f0f76c35085d6a9f33d85ecfdc

Ivan Kohler ivan at freeside.biz
Tue Sep 25 19:31:13 PDT 2018


The branch, FREESIDE_4_BRANCH has been updated
       via  4af1201514d154f0f76c35085d6a9f33d85ecfdc (commit)
      from  9b47eb2090ca7eb9ff7eaef07563600296866759 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4af1201514d154f0f76c35085d6a9f33d85ecfdc
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Sep 25 19:31:12 2018 -0700

    fix paymentech batch approval status processing, RT#80622

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 = (

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/pay_batch/paymentech.pm | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)




More information about the freeside-commits mailing list