From: ethem Date: Mon, 4 Sep 2006 07:51:15 +0000 (+0000) Subject: This merchant accepts eCheck (ACH) transactions only; no credit card transactions... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=039edfab072107e6c5031014591e22e2f7712e24;p=moodle.git This merchant accepts eCheck (ACH) transactions only; no credit card transactions are accepted. --- diff --git a/enrol/authorize/authorizenetlib.php b/enrol/authorize/authorizenetlib.php index 3036b55f08..646b556377 100644 --- a/enrol/authorize/authorizenetlib.php +++ b/enrol/authorize/authorizenetlib.php @@ -397,7 +397,15 @@ function authorize_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE, $ } break; } - // Electronic checks aren't accepted + // Echecks only + case AN_REASON_ACHONLY: + { + set_config('an_acceptmethods', AN_METHOD_ECHECK); + email_to_admin("$message " . + "This is new config(an_acceptmethods):", array(AN_METHOD_ECHECK)); + break; + } + // Echecks aren't accepted case AN_REASON_NOACH: { set_config('an_acceptmethods', AN_METHOD_CC); diff --git a/lang/en_utf8/enrol_authorize.php b/lang/en_utf8/enrol_authorize.php index fbc27e8590..3d484bb33b 100644 --- a/lang/en_utf8/enrol_authorize.php +++ b/lang/en_utf8/enrol_authorize.php @@ -154,6 +154,7 @@ $string['reason50'] = 'This transaction is awaiting settlement and cannot be ref $string['reason51'] = 'The sum of all credits against this transaction is greater than the original transaction amount.'; $string['reason54'] = 'The referenced transaction does not meet the criteria for issuing a credit.'; $string['reason55'] = 'The sum of credits against the referenced transaction would exceed the original debit amount.'; +$string['reason56'] = 'This merchant accepts eCheck (ACH) transactions only; no credit card transactions are accepted.'; $string['refund'] = 'Refund'; $string['refunded'] = 'Refunded'; $string['returns'] = 'Returns';