diff options
author | jeff <jeff> | 2007-01-10 02:41:33 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-01-10 02:41:33 +0000 |
commit | 93c1f21416fb08f307f60c456f4bb3736eb2fbce (patch) | |
tree | 6c2cb78c41e539b78a7c266f98c27252f6e2e80c /FS | |
parent | e8e43b0e59cf50e7a3c0789f589046459bc658c1 (diff) |
E-xactBatch masks card numbers
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_pay_batch.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/cust_pay_batch.pm b/FS/FS/cust_pay_batch.pm index d263f2176..de87ef1e1 100644 --- a/FS/FS/cust_pay_batch.pm +++ b/FS/FS/cust_pay_batch.pm @@ -377,8 +377,11 @@ sub import_results { $hook = sub { my $hash = shift; + my $cpb = shift; $hash->{'paid'} = sprintf("%.2f", $hash->{'paid'}); #hmmmm $hash->{'_date'} = time; # got a better one? + $hash->{'payinfo'} = $cpb->{'payinfo'} + if( substr($hash->{'payinfo'}, -4) eq substr($cpb->{'payinfo'}, -4) ); }; $approved_condition = sub { @@ -527,7 +530,7 @@ sub import_results { my $new_cust_pay_batch = new FS::cust_pay_batch { $cust_pay_batch->hash }; - &{$hook}(\%hash); + &{$hook}(\%hash, $cust_pay_batch->hashref); if ( &{$approved_condition}(\%hash) ) { |