summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2018-09-25 19:31:15 -0700
committerIvan Kohler <ivan@freeside.biz>2018-09-25 19:31:15 -0700
commit4fdfe871a80ff796146218fd226e46be97698e0f (patch)
tree168837cd22c0772b2a85ab7799ef4f2b6101c5ab
parent97656ea6ea7a9138036ba1499a05d64a1f8850c6 (diff)
fix paymentech batch approval status processing, RT#80622
-rw-r--r--FS/FS/pay_batch/paymentech.pm8
1 files changed, 2 insertions, 6 deletions
diff --git a/FS/FS/pay_batch/paymentech.pm b/FS/FS/pay_batch/paymentech.pm
index 65fb668..7ddaff2 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 = (