RT#37632: Credit card validation [v3, saving from payment.cgi]
authorJonathan Prykop <jonathan@freeside.biz>
Fri, 6 May 2016 03:14:36 +0000 (22:14 -0500)
committerJonathan Prykop <jonathan@freeside.biz>
Fri, 6 May 2016 03:14:36 +0000 (22:14 -0500)
httemplate/misc/process/payment.cgi

index a475786..dcfcc0b 100644 (file)
@@ -164,7 +164,10 @@ if ( $cgi->param('save') ) {
   #false laziness w/FS:;cust_main::realtime_bop - check both to make sure
   # working correctly
   if ( $payby eq 'CARD' &&
-       grep { $_ eq cardtype($payinfo) } $conf->config('cvv-save') ) {
+       ( (grep { $_ eq cardtype($payinfo) } $conf->config('cvv-save')) 
+         || $conf->exists('business-onlinepayment-verification') 
+       )
+  ) {
     $new->set( 'paycvv' => $paycvv );
   } else {
     $new->set( 'paycvv' => '');