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;
}
$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.