<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=PayPal_enrolment</id>
	<title>PayPal enrolment - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=PayPal_enrolment"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=PayPal_enrolment&amp;action=history"/>
	<updated>2026-05-06T16:38:37Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=PayPal_enrolment&amp;diff=4633&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=PayPal_enrolment&amp;diff=4633&amp;oldid=prev"/>
		<updated>2024-10-18T06:43:17Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:43, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=PayPal_enrolment&amp;diff=4632&amp;oldid=prev</id>
		<title>1&gt;Marycooch: /* What is the difference between PayPal enrolment and Enrolment on payment? */</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=PayPal_enrolment&amp;diff=4632&amp;oldid=prev"/>
		<updated>2022-07-07T07:53:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;What is the difference between PayPal enrolment and Enrolment on payment?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Enrolment}}&lt;br /&gt;
{{Note|A new recommended enrolment method for paying with PayPal is available - [[Enrolment on payment]]. Enrolment on payment provides the option of having multiple [[Payment gateways]].}}&lt;br /&gt;
&lt;br /&gt;
==What is PayPal enrolment?==&lt;br /&gt;
&lt;br /&gt;
PayPal enrolment allows users to pay for courses and then be automatically enrolled. &lt;br /&gt;
&lt;br /&gt;
==What is the difference between PayPal enrolment and Enrolment on payment?==&lt;br /&gt;
&lt;br /&gt;
[[Enrolment on payment]] provides more features than PayPal enrolment, such as the option of having multiple [[Payment gateways]].&lt;br /&gt;
&lt;br /&gt;
The PayPal enrolment plugin uses PayPal&amp;#039;s old API which still works, though PayPal encourages the use of the new API, as done for the PayPal payment gateway plugin.&lt;br /&gt;
&lt;br /&gt;
PayPal enrolment can still be used but will be removed in a future version of Moodle. &lt;br /&gt;
&lt;br /&gt;
For these reasons, it is recommended that you use Enrolment on payment rather than PayPal enrolment.&lt;br /&gt;
&lt;br /&gt;
==PayPal side setup==&lt;br /&gt;
&lt;br /&gt;
# Create a PayPal account at https://www.paypal.com&lt;br /&gt;
#* Although not required, it may be wise to upgrade your account to &amp;quot;Premier&amp;quot; status and get &amp;quot;Verified&amp;quot;.&lt;br /&gt;
# Set the encoding to UTF-8.&lt;br /&gt;
#* Go to Profile &amp;gt; Profile and settings &amp;gt; My selling tools &amp;gt; More selling tools &amp;gt; PayPal button language encoding&lt;br /&gt;
#* Make sure you have your website&amp;#039;s language set to Western European Languages&lt;br /&gt;
#* Click the &amp;quot;More Options&amp;quot; button&lt;br /&gt;
#* Set encoding to &amp;quot;UTF-8&amp;quot; and let the same encoding be used for IPN, too.&lt;br /&gt;
# Enable instant payment notifications (IPN)&lt;br /&gt;
#* Go to Profile &amp;gt; Profile and settings &amp;gt; My selling tools &amp;gt; Getting paid and managing my risk &amp;gt; Instant payment notifications &amp;gt; Update&lt;br /&gt;
#* Turn IPN on and set the notification URL to your site&amp;#039;s enrol/paypal/ipn.php (so it reads for example like &amp;lt;nowiki&amp;gt;https://my.school.edu/moodle/enrol/paypal/ipn.php&amp;lt;/nowiki&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
You may wish to log in to https://developer.paypal.com/developer/accounts/ and experiment with PayPal Sandbox first. If doing do, put this to your config.php:&lt;br /&gt;
&lt;br /&gt;
    $CFG-&amp;gt;usepaypalsandbox = 1;&lt;br /&gt;
&lt;br /&gt;
PayPal can provide more details, but as a high-level overview you will:&lt;br /&gt;
# Create &amp;quot;sandbox&amp;quot; accounts that are used for testing. At least one &amp;quot;BUSINESS&amp;quot; account is needed, and one &amp;quot;PERSONAL&amp;quot; account is needed, to represent both sides of a pretend transaction.&lt;br /&gt;
# These sandbox accounts will be registered/associated with the developer account for your REAL PayPal business account.&lt;br /&gt;
# When testing, in addition to the configuration flag above, remember to use the &amp;quot;BUSINESS&amp;quot; type sandbox account email address in the &amp;quot;PayPal business email&amp;quot; field in the PayPal plugin settings page. Do this instead of using your REAL business email address. Failure to use the pretend business account will result in an error message.&lt;br /&gt;
&lt;br /&gt;
==Enabling PayPal enrolment==&lt;br /&gt;
&lt;br /&gt;
{{MediaPlayer | url = https://youtu.be/Prir-5hduws | desc = How to set up payment for courses}}&lt;br /&gt;
&lt;br /&gt;
An administrator can enable PayPal file enrolment as follows:&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;Go to Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&amp;#039;&amp;#039; and click the eye icon opposite PayPal. When enabled, it will no longer be greyed out. [[Manual enrolment]] must also be enabled, since the PayPal plugin requires it.&lt;br /&gt;
# Click the settings link, configure as required (see details of settings below), then click the &amp;#039;Save changes&amp;#039; button.&lt;br /&gt;
&lt;br /&gt;
* PayPal business email - This setting is case sensitive and must exactly match that in PayPal&lt;br /&gt;
* Default role assignment - This means the role that a new user will automatically be given in a course when they purchase access. Usually this would be &amp;quot;student&amp;quot; unless you have a special reason for choosing another role. As for other default settings, it may be overridden in individual courses.&lt;br /&gt;
&lt;br /&gt;
Tip: If you wish to allow users to create their own accounts on your site then you need to set up [[Email-based self-registration|Email based self registration]].&lt;br /&gt;
&lt;br /&gt;
==Course settings for PayPal==&lt;br /&gt;
&lt;br /&gt;
===Checking you have PayPal in your course===&lt;br /&gt;
&lt;br /&gt;
# If you are using the [[Boost theme]], from Course administration, click Participants and from the dropdown select Enrolment methods. If you are using a different theme, go to &amp;#039;&amp;#039;Course administration &amp;gt; Users &amp;gt; Enrolment methods&amp;#039;&amp;#039;&lt;br /&gt;
# If you do not see PayPal, use the pull down menu &amp;quot;Add method&amp;quot; and select PayPal. If you are a course teacher, your admin will need to allow you the capability &amp;#039;&amp;#039;enrol/paypal:config&amp;#039;&amp;#039; in order for you to add this method.&lt;br /&gt;
# Make sure PayPal has its &amp;quot;eye&amp;quot; opened: &lt;br /&gt;
&lt;br /&gt;
[[File:Paypalenrolmentmethod.png]]&lt;br /&gt;
{{Note|Make sure you don&amp;#039;t  have [[Self enrolment]] enabled as this would allow users to access the course without paying. If you do need some users to self enrol for free, then add an [[Enrolment key]] in the self enrolment settings.}}&lt;br /&gt;
&lt;br /&gt;
===Setting a price for your course===&lt;br /&gt;
&lt;br /&gt;
# In &amp;#039;&amp;#039;Course Administration &amp;gt; Users &amp;gt; Enrolment methods&amp;#039;&amp;#039;, click the edit/hand/pen icon to the right of the PayPal option. &lt;br /&gt;
# Optional: Give a name to this enrolment method if you wish in &amp;quot;Custom Instance name&amp;quot;&lt;br /&gt;
# Ensure that &amp;quot;Allow PayPal enrolments&amp;quot; is set to &amp;quot;yes&amp;quot;&lt;br /&gt;
# In &amp;quot;Enrol cost&amp;quot;, type in the cost of your course and in &amp;quot;Currency&amp;quot; choose your currency.&lt;br /&gt;
# Usually you would leave the &amp;quot;Assign role&amp;quot; as &amp;quot;student&amp;quot; unless you have a very special reason for allowing your users to enrol as, say, editing teachers etc.&lt;br /&gt;
# Choose an enrolment period and/or start/end dates if desired.&lt;br /&gt;
# Click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Paypalcoursesettings.png]]&lt;br /&gt;
&lt;br /&gt;
===What the new user sees===&lt;br /&gt;
&lt;br /&gt;
When a new user clicks on your course link, they will see a message inviting them to go to PayPal to purchase access to the course. In the list of courses, PayPal courses have a &amp;quot;P&amp;quot; icon next to them.&lt;br /&gt;
{|&lt;br /&gt;
| [[File:Paypaluserview.png|frame|left|Message inviting user to pay via PayPal]]&lt;br /&gt;
| [[File:Paypalicon.png|frame|left|PayPal course listed with &amp;quot;P&amp;quot; icon]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==PayPal capabilities==&lt;br /&gt;
&lt;br /&gt;
*[[Capabilities/enrol/paypal:config|Configure PayPal enrol instances]]&lt;br /&gt;
*[[Capabilities/enrol/paypal:manage|Manage enrolled users]]&lt;br /&gt;
*[[Capabilities/enrol/paypal:unenrol|Unenrol users from course]]&lt;br /&gt;
*[[Capabilities/enrol/paypal:unenrolself|Unenrol self from the course]]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
*[[Enrolment on payment]]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=171745#p977221 Testing the PayPal plugin in the PayPal Sandbox]&lt;br /&gt;
&lt;br /&gt;
[[de:Paypal-Einschreibung]]&lt;br /&gt;
[[es:Inscripción por Paypal]]&lt;br /&gt;
[[fr:Inscription Paypal]]&lt;/div&gt;</summary>
		<author><name>1&gt;Marycooch</name></author>
	</entry>
</feed>