Skip to content
Browse files

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.
  • Loading branch information...
1 parent 07c48fc commit f1b31fb5179b03e893ab3377f3909a92dc885374 ethem committed Sep 4, 2006
Showing with 1 addition and 4 deletions.
  1. +1 −4 enrol/authorize/localfuncs.php
View
5 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);
}

0 comments on commit f1b31fb

Please sign in to comment.
Something went wrong with that request. Please try again.