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:
ethem 2006-09-04 07:33:11 +00:00
parent 07c48fcff6
commit f1b31fb517

View file

@ -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);
}