Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Students can view their payments.

  • Loading branch information...
commit a6c656065c9ea3651e7a28e7679936a40de6e9ea 1 parent 222caf2
ethem authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  enrol/authorize/enrol.php
  2. +1 −1  lang/en_utf8/enrol_authorize.php
View
1  enrol/authorize/enrol.php
@@ -545,6 +545,7 @@ function prevent_double_paid($course)
if ($rec=get_record('enrol_authorize','userid',$USER->id,'courseid',$course->id,'status',$status,'id')) {
$a->orderid = $rec->id;
+ $a->url = "$CFG->wwwroot/enrol/authorize/index.php?order=$a->orderid";
redirect($CFG->wwwroot, get_string("paymentpending", "enrol_authorize", $a), '20');
return;
}
View
2  lang/en_utf8/enrol_authorize.php
@@ -104,7 +104,7 @@
$string['notsettled'] = 'Not settled';
$string['orderid'] = 'Order ID';
$string['paymentmanagement'] = 'Payment Management';
-$string['paymentpending'] = 'Your payment is pending for this course with this order number $a->orderid.';
+$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,
$a->pending transactions will be expired unless you accept payment with in $a->days days.
Please sign in to comment.
Something went wrong with that request. Please try again.