3 <p><?php print_string("paymentrequired") ?></p>
4 <p><b><?php echo get_string("cost").": $CFG->enrol_currency $cost"; ?></b></p>
5 <p><img alt=
"<?php print_string('paypalaccepted', 'enrol_paypal') ?>" src
="https://www.paypal.com/en_US/i/logo/PayPal_mark_60x38.gif" /></p
>
6 <p
><?php
print_string("paymentinstant") ?></p>
8 $paypalurl = empty($CFG->usepaypalsandbox
) ?
'https://www.paypal.com/cgi-bin/webscr' : 'https://www.sandbox.paypal.com/cgi-bin/webscr';
10 <form action=
"<?php echo $paypalurl ?>" method
="post">
12 <input type
="hidden" name
="cmd" value
="_xclick" />
13 <input type
="hidden" name
="charset" value
="utf-8" />
14 <input type
="hidden" name
="business" value
="<?php p($CFG->enrol_paypalbusiness)?>" />
15 <input type
="hidden" name
="item_name" value
="<?php p($coursefullname) ?>" />
16 <input type
="hidden" name
="item_number" value
="<?php p($courseshortname) ?>" />
17 <input type
="hidden" name
="quantity" value
="1" />
18 <input type
="hidden" name
="on0" value
="<?php print_string("user
") ?>" />
19 <input type
="hidden" name
="os0" value
="<?php p($userfullname) ?>" />
20 <input type
="hidden" name
="custom" value
="<?php echo "$USER->id
-$course->id
" ?>" />
22 <input type
="hidden" name
="currency_code" value
="<?php p($CFG->enrol_currency) ?>" />
23 <input type
="hidden" name
="amount" value
="<?php p($cost) ?>" />
25 <input type
="hidden" name
="for_auction" value
="false" />
26 <input type
="hidden" name
="no_note" value
="1" />
27 <input type
="hidden" name
="no_shipping" value
="1" />
28 <input type
="hidden" name
="notify_url" value
="<?php echo "$CFG->wwwroot
/enrol
/paypal
/ipn
.php
"?>" />
29 <input type
="hidden" name
="return" value
="<?php echo "$CFG->wwwroot
/enrol
/paypal
/return.php?id
=$course->id
" ?>" />
30 <input type
="hidden" name
="cancel_return" value
="<?php echo $CFG->wwwroot ?>" />
31 <input type
="hidden" name
="rm" value
="2" />
32 <input type
="hidden" name
="cbt" value
="<?php print_string("continuetocourse
") ?>" />
34 <input type
="hidden" name
="first_name" value
="<?php p($userfirstname) ?>" />
35 <input type
="hidden" name
="last_name" value
="<?php p($userlastname) ?>" />
36 <input type
="hidden" name
="address" value
="<?php p($useraddress) ?>" />
37 <input type
="hidden" name
="city" value
="<?php p($usercity) ?>" />
38 <input type
="hidden" name
="email" value
="<?php p($USER->email) ?>" />
39 <input type
="hidden" name
="country" value
="<?php p($USER->country) ?>" />
41 <input type
="submit" value
="<?php print_string("sendpaymentbutton
", "enrol_paypal
") ?>" />