fix paymentech return processing when it's the default payment gateway, #21358, ...
authorMark Wells <mark@freeside.biz>
Fri, 8 Feb 2013 22:19:31 +0000 (14:19 -0800)
committerMark Wells <mark@freeside.biz>
Fri, 8 Feb 2013 22:19:31 +0000 (14:19 -0800)
FS/FS/pay_batch/paymentech.pm

index 9705503..3021bb6 100644 (file)
@@ -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'},
       );