diff --git a/enrol/authorize/locallib.php b/enrol/authorize/locallib.php
index 31c5697eff0..483a8fa7b85 100644
--- a/enrol/authorize/locallib.php
+++ b/enrol/authorize/locallib.php
@@ -210,7 +210,7 @@ function authorize_print_order_details($orderno)
$table->data[] = array("$authstrs->nameoncard:", $order->ccname);
}
else {
- $table->data[] = array("$authstrs->echeckfirslasttname:", $order->ccname);
+ $table->data[] = array("$authstrs->echeckfirslasttname:", $order->ccname);
}
$table->data[] = array("$strs->time:", userdate($order->timecreated));
$table->data[] = array("$authstrs->settlementdate:", $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';