From f1b31fb5179b03e893ab3377f3909a92dc885374 Mon Sep 17 00:00:00 2001 From: ethem Date: Mon, 4 Sep 2006 07:33:11 +0000 Subject: [PATCH] Allow all payment methods as default: AN_METHOD_CC, AN_METHOD_ECHECK authorizenetlib.php autoconfigures payment method as AN_METHOD_CC if the merchant doesn't accept AN_METHOD_ECHECK. First real echeck transaction is enough for this. --- enrol/authorize/localfuncs.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/enrol/authorize/localfuncs.php b/enrol/authorize/localfuncs.php index 4380a2fc65..9cf1cb3e35 100644 --- a/enrol/authorize/localfuncs.php +++ b/enrol/authorize/localfuncs.php @@ -79,12 +79,9 @@ function get_list_of_payment_methods($getall = false) { global $CFG; - if ($getall) { + if ($getall || empty($CFG->an_acceptmethods)) { return array(AN_METHOD_CC, AN_METHOD_ECHECK); } - elseif (empty($CFG->an_acceptmethods)) { - return array(AN_METHOD_CC); // default - } else { return explode(',', $CFG->an_acceptmethods); } -- 2.39.5