[freeside-commits] freeside/FS/FS pay_batch.pm,1.24,1.25
Mark Wells
mark at wavetail.420.am
Mon Aug 23 20:03:11 PDT 2010
- Previous message: [freeside-commits] freeside/FS/FS cust_pkg.pm, 1.167, 1.168 cust_pay.pm, 1.82, 1.83 cust_pay_void.pm, 1.9, 1.10 cust_refund.pm, 1.36, 1.37 cust_credit.pm, 1.43, 1.44 cust_main.pm, 1.542, 1.543 banned_pay.pm, 1.2, 1.3
- Next message: [freeside-commits] freeside/FS/FS cust_main.pm, 1.464.2.44, 1.464.2.45 pay_batch.pm, 1.15.2.7, 1.15.2.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv15446/FS/FS
Modified Files:
pay_batch.pm
Log Message:
delete CVV when processing batch results, RT#9652
Index: pay_batch.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/pay_batch.pm,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -w -d -r1.24 -r1.25
--- pay_batch.pm 24 Aug 2010 02:17:22 -0000 1.24
+++ pay_batch.pm 24 Aug 2010 03:03:09 -0000 1.25
@@ -7,6 +7,7 @@
use FS::Record qw( dbh qsearch qsearchs );
use FS::cust_pay;
use FS::Conf;
+use Business::CreditCard qw(cardtype);
@ISA = qw(FS::Record);
@@ -198,6 +199,8 @@
my $job = $param->{'job'};
$job->update_statustext(0) if $job;
+ my $conf = new FS::Conf;
+
my $filetype = $info->{'filetype'}; # CSV or fixed
my @fields = @{ $info->{'fields'}};
my $formatre = $info->{'formatre'}; # for fixed
@@ -356,6 +359,15 @@
return "error updating status of paybatchnum $hash{'paybatchnum'}: $error\n";
}
+ # purge CVV when the batch is processed
+ if ( $payby =~ /^(CARD|DCRD)$/ ) {
+ my $payinfo = $hash{'payinfo'} || $cust_pay_batch->payinfo;
+ if ( ! grep { $_ eq cardtype($payinfo) }
+ $conf->config('cvv-save') ) {
+ $new_cust_pay_batch->cust_main->remove_cvv;
+ }
+ }
+
if ( $new_cust_pay_batch->status =~ /Approved/i ) {
my $cust_pay = new FS::cust_pay ( {
- Previous message: [freeside-commits] freeside/FS/FS cust_pkg.pm, 1.167, 1.168 cust_pay.pm, 1.82, 1.83 cust_pay_void.pm, 1.9, 1.10 cust_refund.pm, 1.36, 1.37 cust_credit.pm, 1.43, 1.44 cust_main.pm, 1.542, 1.543 banned_pay.pm, 1.2, 1.3
- Next message: [freeside-commits] freeside/FS/FS cust_main.pm, 1.464.2.44, 1.464.2.45 pay_batch.pm, 1.15.2.7, 1.15.2.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list