Permalink
Browse files

Echecks can not be cancelled.

2 actions only for echecks: auth_capture and credit
  • Loading branch information...
1 parent 0c76d7e commit d69ce8d4eb1ffefc96351b9bf92375d8647688ba ethem committed Sep 1, 2006
Showing with 3 additions and 2 deletions.
  1. +3 −2 enrol/authorize/locallib.php
@@ -210,7 +210,7 @@ function authorize_print_order_details($orderno)
$table->data[] = array("<b>$authstrs->nameoncard:</b>", $order->ccname);
}
else {
- $table->data[] = array("<b>$authstrs->echeckfirslasttname:</b>", $order->ccname);
+ $table->data[] = array("<b>$authstrs->echeckfirslasttname:</b>", $order->ccname);
}
$table->data[] = array("<b>$strs->time:</b>", userdate($order->timecreated));
$table->data[] = array("<b>$authstrs->settlementdate:</b>", $settled ?
@@ -584,7 +584,8 @@ function authorize_get_status_action($order)
$ret->status = 'settled';
}
else {
- if (has_capability('enrol/authorize:managepayments', $context)) {
+ if ($order->paymentmethod == AN_METHOD_CC &&
+ has_capability('enrol/authorize:managepayments', $context)) {
$ret->actions = array(ORDER_VOID);
}
$ret->status = 'refunded';

0 comments on commit d69ce8d

Please sign in to comment.