From f2c46c3618b184dc8d737e885b3914580b56975b Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Thu, 5 May 2016 21:36:15 -0500 Subject: RT#37632: Credit card validation [saving from payment.cgi] --- FS/FS/cust_main.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'FS/FS/cust_main.pm') diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index ba28f2a..4946d99 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -4600,7 +4600,10 @@ sub save_cust_payby { # compare to FS::cust_main::realtime_bop - check both to make sure working correctly if ( $payby eq 'CARD' && - grep { $_ eq cardtype($opt{'payinfo'}) } $conf->config('cvv-save') ) { + ( (grep { $_ eq cardtype($opt{'payinfo'}) } $conf->config('cvv-save')) + || $conf->exists('business-onlinepayment-verification') + ) + ) { $new->set( 'paycvv' => $opt{'paycvv'} ); } else { $new->set( 'paycvv' => ''); -- cgit v1.1