From 22fa4da34fcbc3e920b6e3a519a74e5e2896c280 Mon Sep 17 00:00:00 2001 From: ethem Date: Thu, 31 Aug 2006 07:35:16 +0000 Subject: [PATCH] New feature: Autoconfigure credit card types, if the merchant does not accept this type of credit card; Backported from HEAD. --- enrol/authorize/authorizenetlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/authorize/authorizenetlib.php b/enrol/authorize/authorizenetlib.php index 797fa665187..940a60e979b 100644 --- a/enrol/authorize/authorizenetlib.php +++ b/enrol/authorize/authorizenetlib.php @@ -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); }