diff options
author | ivan <ivan> | 2003-10-24 20:38:12 +0000 |
---|---|---|
committer | ivan <ivan> | 2003-10-24 20:38:12 +0000 |
commit | 400fb761af56fc1c77a2fd43435dca5df0691bca (patch) | |
tree | 39179baf6e5fed6fd08ebffdfa43ba2ac53f8e63 | |
parent | 1c44b800d49605b941d04726bcb60fd9015bb460 (diff) |
add cvv-save configuration value to save the cvv data for specific card types
-rw-r--r-- | FS/FS/Conf.pm | 16 | ||||
-rw-r--r-- | FS/FS/cust_bill.pm | 2 |
2 files changed, 18 insertions, 0 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 7a827dc55..a58c7fe47 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1087,6 +1087,22 @@ httemplate/docs/config.html 'type' => 'textarea', }, + { + 'key' => 'cvv-save', + 'section' => 'billing', + 'description' => 'Save CVV2 information after the initial transaction for the selected credit card types. Enabling this option may be in violation of your merchant agreement(s), so please check them carefully before enabling this option for any credit card types.', + 'type' => 'selectmultiple', + 'select_enum' => [ "VISA card", + "MasterCard", + "Discover card", + "American Express card", + "Diner's Club/Carte Blanche", + "enRoute", + "JCB", + "BankCard", + ], + }, + ); 1; diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index a4039c37c..94299e890 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -841,6 +841,8 @@ sub realtime_bop { # (though that probably violates cardholder agreements) if ( defined $cust_main->dbdef_table->column('paycvv') && length($cust_main->paycvv) + && ! grep { $_ eq cardtype($cust_main->payinfo) } $conf->config('cvv-save') + ) { my $new = new FS::cust_main { $cust_main->hash }; $new->paycvv(''); |