Permalink
Browse files

If the merchant does not accept ACH (echeck) method, set default paym…

…ent method as AN_METHOD_CC.
  • Loading branch information...
1 parent f44152f commit 9f7f87a9a6a52f4113efc782b85f2b46ccee2c7b ethem committed Aug 31, 2006
Showing with 4 additions and 2 deletions.
  1. +4 −2 enrol/authorize/authorizenetlib.php
@@ -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

0 comments on commit 9f7f87a

Please sign in to comment.