summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-05-05 22:14:36 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-05-05 22:14:36 -0500
commit77ea8306a967f5d34e98b0900cc7414f4540f04a (patch)
tree7705723c0ca2935003810d222790ec70bc6aef99
parentdca12af272e0061810d14e611afa07adb58389ef (diff)
RT#37632: Credit card validation [v3, saving from payment.cgi]
-rw-r--r--httemplate/misc/process/payment.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/misc/process/payment.cgi b/httemplate/misc/process/payment.cgi
index a475786dd..dcfcc0b85 100644
--- a/httemplate/misc/process/payment.cgi
+++ b/httemplate/misc/process/payment.cgi
@@ -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' => '');