From: Mark Wells Date: Fri, 8 Feb 2013 22:19:31 +0000 (-0800) Subject: fix paymentech return processing when it's the default payment gateway, #21358, ... X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=1951a5f6de2a3a5b6964c0016455dc438cd1b53c;p=freeside.git fix paymentech return processing when it's the default payment gateway, #21358, #21117 --- diff --git a/FS/FS/pay_batch/paymentech.pm b/FS/FS/pay_batch/paymentech.pm index 970550378..3021bb60f 100644 --- a/FS/FS/pay_batch/paymentech.pm +++ b/FS/FS/pay_batch/paymentech.pm @@ -60,8 +60,12 @@ my $gateway; $hash->{'_date'} =~ /^(..)(..)(....)(..)(..)(..)$/; $hash->{'_date'} = timelocal($sec, $min, $hour, $day, $mon-1, $year); $hash->{'paid'} = $oldhash->{'amount'}; + + my $gateway_label = $hash->{'processor'}; + $gateway_label = $hash->{'gatewaynum'} . '-' . $gateway_label + if $hash->{'gatewaynum'}; $hash->{'paybatch'} = join(':', - $gateway->gatewaynum . '-PaymenTech', + $gateway_label, $hash->{'auth'}, $hash->{'order_number'}, );