New feature: Autoconfigure credit card types, if the merchant does not accept this type of credit card; Backported from HEAD.

This commit is contained in:
ethem
2006-08-31 07:35:16 +00:00
parent 0ee1574512
commit 22fa4da34f
+1 -1
View File
@@ -341,7 +341,7 @@ function authorize_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE, $
if (!$test && !empty($cctype) && ($reasonno == 17 or $reasonno == 28)) {
$ccaccepts = enrolment_plugin_authorize::get_list_of_creditcards();
unset($ccaccepts[$cctype]);
set_config('an_acceptccs', array_keys($ccaccepts));
set_config('an_acceptccs', implode(',', array_keys($ccaccepts)));
enrolment_plugin_authorize::email_to_admin("Autoconfigure; This card type " .
"isn't accepted: $cctype. New config:", $ccaccepts);
}