2004-06-26 14:40:25 +00:00
|
|
|
<div align="center">
|
|
|
|
|
|
|
|
<p><?php print_string("paymentrequired") ?></p>
|
2004-08-21 17:15:07 +00:00
|
|
|
<p><b><?php echo get_string("cost").": $CFG->enrol_currency $cost"; ?></b></p>
|
2004-06-26 14:40:25 +00:00
|
|
|
<p><?php print_string("paymentinstant") ?></p>
|
|
|
|
|
2004-06-26 09:50:19 +00:00
|
|
|
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
|
|
|
|
|
|
|
<input type="hidden" name="cmd" value="_xclick">
|
|
|
|
<input type="hidden" name="business" value="<?php p($CFG->enrol_paypalbusiness)?>">
|
2005-01-05 00:28:26 +00:00
|
|
|
<input type="hidden" name="item_name" value="<?php p($coursefullname) ?>">
|
|
|
|
<input type="hidden" name="item_number" value="<?php p($courseshortname) ?>">
|
2004-06-26 09:50:19 +00:00
|
|
|
<input type="hidden" name="quantity" value="1">
|
2004-06-26 14:40:25 +00:00
|
|
|
<input type="hidden" name="on0" value="<?php print_string("user") ?>">
|
2005-01-05 00:28:26 +00:00
|
|
|
<input type="hidden" name="os0" value="<?php p($userfullname) ?>">
|
2004-06-26 14:40:25 +00:00
|
|
|
<input type="hidden" name="custom" value="<?php echo "$USER->id-$course->id" ?>">
|
2004-06-26 09:50:19 +00:00
|
|
|
|
2004-08-21 17:15:07 +00:00
|
|
|
<input type="hidden" name="currency_code" value="<?php p($CFG->enrol_currency) ?>">
|
2004-06-26 09:50:19 +00:00
|
|
|
<input type="hidden" name="amount" value="<?php p($cost) ?>">
|
|
|
|
|
2004-07-06 16:00:43 +00:00
|
|
|
<input type="hidden" name="for_auction" value="false">
|
2004-06-26 14:40:25 +00:00
|
|
|
<input type="hidden" name="no_note" value="1">
|
|
|
|
<input type="hidden" name="notify_url" value="<?php echo "$CFG->wwwroot/enrol/paypal/ipn.php"?>">
|
|
|
|
<input type="hidden" name="return" value="<?php echo "$CFG->wwwroot/enrol/paypal/return.php?id=$course->id" ?>">
|
|
|
|
<input type="hidden" name="cancel_return" value="<?php echo $CFG->wwwroot ?>">
|
2004-07-06 16:00:43 +00:00
|
|
|
<input type="hidden" name="rm" value="2">
|
2004-06-26 14:40:25 +00:00
|
|
|
<input type="hidden" name="cbt" value="<?php print_string("continuetocourse") ?>">
|
|
|
|
|
2005-01-05 00:28:26 +00:00
|
|
|
<input type="hidden" name="first_name" value="<?php p($userfirstname) ?>">
|
|
|
|
<input type="hidden" name="last_name" value="<?php p($userlastname) ?>">
|
|
|
|
<input type="hidden" name="address" value="<?php p($useraddress) ?>">
|
|
|
|
<input type="hidden" name="city" value="<?php p($usercity) ?>">
|
2004-06-26 14:40:25 +00:00
|
|
|
<input type="hidden" name="email" value="<?php p($USER->email) ?>">
|
|
|
|
<input type="hidden" name="country" value="<?php p($USER->country) ?>">
|
|
|
|
|
2004-06-26 09:50:19 +00:00
|
|
|
<input type="submit" value="<?php print_string("sendpaymentbutton", "enrol_paypal") ?>">
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
2004-06-26 14:40:25 +00:00
|
|
|
</div>
|