If the merchant does not accept ACH (echeck) method, set default payment method as AN_METHOD_CC.

This commit is contained in:
ethem 2006-08-31 08:06:19 +00:00
parent f44152f44c
commit 9f7f87a9a6

View File

@ -384,7 +384,7 @@ function authorize_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE, $
if (!empty($cctype)) {
$ccaccepts = enrolment_plugin_authorize::get_list_of_creditcards();
unset($ccaccepts[$cctype]);
set_config('an_acceptccs', array_keys($ccaccepts));
set_config('an_acceptccs', implode(',', array_keys($ccaccepts)));
enrolment_plugin_authorize::email_to_admin("Autoconfigure; This card type " .
"isn't accepted: $cctype. New config:", $ccaccepts);
}
@ -393,7 +393,9 @@ function authorize_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE, $
// Electronic checks aren't accepted
case AN_REASON_NOACH:
{
// Not implemented yet.
set_config('an_acceptmethods', AN_METHOD_CC);
enrolment_plugin_authorize::email_to_admin("Autoconfigure; ACH (Echeck) payment type " .
"isn't accepted: New config:", array(AN_METHOD_CC));
break;
}
// This echeck type isn't accepted