diff options
author | Ivan Kohler <ivan@freeside.biz> | 2018-09-25 19:31:09 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2018-09-25 19:31:09 -0700 |
commit | 20c0f34775b56c7969487bfbdb1dcd26546d0925 (patch) | |
tree | 2d6d9406402f6ef7be6bdf746266d0a7e4a7fd65 | |
parent | 66b90d3d395a6bace7d3d73743fbd3dc54bda8b6 (diff) |
fix paymentech batch approval status processing, RT#80622
-rw-r--r-- | FS/FS/pay_batch/paymentech.pm | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/FS/FS/pay_batch/paymentech.pm b/FS/FS/pay_batch/paymentech.pm index bb2c258..094d501 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 = ( |