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.
{
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);
}