mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
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.
This commit is contained in:
parent
07c48fcff6
commit
f1b31fb517
1 changed files with 1 additions and 4 deletions
|
@ -79,12 +79,9 @@ function get_list_of_payment_methods($getall = false)
|
||||||
{
|
{
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
if ($getall) {
|
if ($getall || empty($CFG->an_acceptmethods)) {
|
||||||
return array(AN_METHOD_CC, AN_METHOD_ECHECK);
|
return array(AN_METHOD_CC, AN_METHOD_ECHECK);
|
||||||
}
|
}
|
||||||
elseif (empty($CFG->an_acceptmethods)) {
|
|
||||||
return array(AN_METHOD_CC); // default
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
return explode(',', $CFG->an_acceptmethods);
|
return explode(',', $CFG->an_acceptmethods);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue