Skip to content

Commit

Permalink
New string: paymentmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
ethem committed Sep 1, 2006
1 parent e9f02da commit 0c76d7e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions enrol/authorize/index.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@


/// Load strings. All strings should be defined here. locallib.php uses these strings. /// Load strings. All strings should be defined here. locallib.php uses these strings.
$strs = get_strings(array('status','action','time','course','confirm','no','all','none','error')); $strs = get_strings(array('status','action','time','course','confirm','no','all','none','error'));
$authstrs = get_strings(array('orderid','nameoncard','void','capture','refund','delete', $authstrs = get_strings(array('orderid','nameoncard','echeckfirslasttname','void','capture','refund','delete',
'authcaptured','authorizedpendingcapture','capturedpendingsettle','capturedsettled', 'authcaptured','authorizedpendingcapture','capturedpendingsettle','capturedsettled',
'settled','refunded','cancelled','expired','tested','new', 'settled','refunded','cancelled','expired','tested','new','paymentmethod','methodcc','methodecheck',
'transid','settlementdate','notsettled','amount','unenrolstudent'), 'enrol_authorize'); 'transid','settlementdate','notsettled','amount','unenrolstudent'), 'enrol_authorize');


/// Print header /// Print header
Expand Down
9 changes: 8 additions & 1 deletion enrol/authorize/locallib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -197,14 +197,21 @@ function authorize_print_order_details($orderno)
$settled = authorize_settled($order); $settled = authorize_settled($order);
$status = authorize_get_status_action($order); $status = authorize_get_status_action($order);


$table->data[] = array("<b>$authstrs->paymentmethod:</b>",
($order->paymentmethod == AN_METHOD_CC ? $authstrs->methodcc : $authstrs->methodecheck));
$table->data[] = array("<b>$authstrs->orderid:</b>", $orderno); $table->data[] = array("<b>$authstrs->orderid:</b>", $orderno);
$table->data[] = array("<b>$authstrs->transid:</b>", $order->transid); $table->data[] = array("<b>$authstrs->transid:</b>", $order->transid);
$table->data[] = array("<b>$authstrs->amount:</b>", "$order->currency $order->amount"); $table->data[] = array("<b>$authstrs->amount:</b>", "$order->currency $order->amount");
if (empty($cmdcapture) and empty($cmdrefund) and empty($cmdvoid) and empty($cmddelete)) { if (empty($cmdcapture) and empty($cmdrefund) and empty($cmdvoid) and empty($cmddelete)) {
$color = authorize_get_status_color($status->status); $color = authorize_get_status_color($status->status);
$table->data[] = array("<b>$strs->course:</b>", $order->shortname); $table->data[] = array("<b>$strs->course:</b>", $order->shortname);
$table->data[] = array("<b>$strs->status:</b>", "<font style='color:$color'>" . $authstrs->{$status->status} . "</font>"); $table->data[] = array("<b>$strs->status:</b>", "<font style='color:$color'>" . $authstrs->{$status->status} . "</font>");
$table->data[] = array("<b>$authstrs->nameoncard:</b>", $order->ccname); if ($order->paymentmethod == AN_METHOD_CC) {
$table->data[] = array("<b>$authstrs->nameoncard:</b>", $order->ccname);
}
else {
$table->data[] = array("<b>$authstrs->echeckfirslasttname:</b>", $order->ccname);
}
$table->data[] = array("<b>$strs->time:</b>", userdate($order->timecreated)); $table->data[] = array("<b>$strs->time:</b>", userdate($order->timecreated));
$table->data[] = array("<b>$authstrs->settlementdate:</b>", $settled ? $table->data[] = array("<b>$authstrs->settlementdate:</b>", $settled ?
userdate($order->settletime) : $authstrs->notsettled); userdate($order->settletime) : $authstrs->notsettled);
Expand Down
1 change: 1 addition & 0 deletions lang/en_utf8/enrol_authorize.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
$string['notsettled'] = 'Not settled'; $string['notsettled'] = 'Not settled';
$string['orderid'] = 'Order ID'; $string['orderid'] = 'Order ID';
$string['paymentmanagement'] = 'Payment Management'; $string['paymentmanagement'] = 'Payment Management';
$string['paymentmethod'] = 'Payment Method';
$string['paymentpending'] = 'Your payment is pending for this course with this order number $a->orderid. See <a href=\'$a->url\'>Order Details</a>.'; $string['paymentpending'] = 'Your payment is pending for this course with this order number $a->orderid. See <a href=\'$a->url\'>Order Details</a>.';
$string['pendingordersemail'] = 'Dear admin, $string['pendingordersemail'] = 'Dear admin,
Expand Down

0 comments on commit 0c76d7e

Please sign in to comment.