Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Paypal enrolment.

Paypal enrolment: Difference between revisions

From MoodleDocs
(→‎See also: forum link)
 
(25 intermediate revisions by 7 users not shown)
Line 1: Line 1:
Location: PayPal edit settings link in ''Administration > Courses > [[Enrolment plugins|Enrolments]]''
{{Enrolment}}
Location: PayPal edit settings link in ''Site administration > Plugins > Enrolments > Manage enrol plugins''


The PayPal enrolment plugin allows you to set up paid courses. The plugin has to be enabled by the site administrator (see [[Enrolment_plugins|Enrolment plugins]])and then added to the course by an administrator or manager. You can then set an individual price for your course if needed.


The PayPal enrolment plugin allows you to set up paid courses. It may be enabled via ''Site administration > Courses > Enrollments''.  You can use the edit link to set a standard course cost default.
==Course settings for Paypal==
===Checking you have Paypal in your course===
*In a course, go to Settings> Course administration>Users>Enrolment methods
*If you do not see PayPall, use the pull down menu "Add method" and select PayPal.


==Course costs==
*Make sure PayPal has its "eye" opened:
Costs for each course can be set separately. If the cost for any course is zero, then students are not asked to pay at the time of enrolment into the course. However, if there is a site wide default course cost, you may override that in your course settings.


If the course cost field is not empty, then students trying to enrol will be presented with the option of making a payment to enter.
[[File:Paypalenrolmentmethod.png]]


If you ALSO enter an [[Enrolment key|enrolment key]] in the course settings, then students will also have the option to enrol using a key. This is useful if you have a mixture of paying and non-paying students.
===Setting a price for your course===
*In Settings>Course Administration>Users>enrolment methods, click the edit/hand/pen icon to the right of the Paypal option.
*Give a name to this enrolment method if you wish in "Custom Instance name". (You don't have to!)
*Ensure that "allow Paypal enrolments" is set to "yes"
*In "Enrol cost", type in the cost of your course and in "Currency" choose your currency.
*Usually you would leave the "Assign role" as "student" unless you have a very special reason for allowing your users to enrol as, say, editing teachers etc
*Choose an enrolmet period and/or start/end dates if desired.
*Click the "Save changes" button.


==Verifying the default encoding==
[[File:Paypalcoursesettings.png]]
{{Moodle 1.8}}If you are using Moodle 1.8 or later, you need to verify the default encoding in your PayPal business account as follows:


#Login go to your PayPal account, select "My Account" tab, then Profile tab.
===What the new user sees===
#Click on "Language Encoding" in the right column Selling Preferences.
*When a new user clicks on  your course link, having made a login to your Moodle, they will see the following screen, inviting them to go to PayPal to purchase access to your course:
#Click on "More Options" button and select UTF-8 encoding for both cases. If you are using other software with IPN please check that it is compatible with UTF-8 encoding.


==See also==
[[File:Paypaluserview.png]]


* Using Moodle [http://moodle.org/mod/forum/view.php?id=2981 Enrolment Plugins forum]
==Admin settings==
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=137299 Can't get paid enrollment to work in any form] forum discussion
 
*[[Metacourses]] - using same core course subjects but packaging them at different rates.
#If you wish to allow users to make their own accounts on your site then set up [[Email-based_self-registration|Email based self registration]]
* see Jhon Anderson's answer in the forums [http://moodle.org/mod/forum/discuss.php?d=116279#p510221 Howto setup Moodle to work with Paypal]  
#Go to ''Settings>Site Administration>Plugins>Enrolments>Manage enrol plugins'' and enable (open the "eye" of Paypal)
#Click the blue Settings link to the right of the PayPal enrolment link. Here are the default settings and default settings for new instances in a course:
##Add the email of your Business PayPal account. The email settings are case sensitive and must exactly match that in PayPal.
##Choose whether to notify students/teachers/admin.
##Choose whether (or not) to allow the Paypal enrolment plugin by default in new courses
##Choose a default cost and currency. (This may  be overridden in individual courses)
##Choose a 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 "student" unless you have a special reason for choosing another role.) This may be overridden in individual courses.
##Choose the default enrolment period. This may be overridden in individual courses.
 
==What to set up in Paypal==
* Setup your PayPal account at paypal.com
# Create a Paypal account if you don't have one
# Not required but recommended for selling: Upgrade your account to "Premier" status and get "Verified"
# Setup IPN in Paypal to interact with Moodle.  Log into Paypal, go to Profile >> More Options >> Instant Payment Notification Preferences (under Selling Preferences) >> Choose IPN Settings. Enter a URL that references your IPN file in your Moodle installation (for example: http://moodle.example.com/enrol/paypal/ipn.php)
# Set the Encoding to UTF-8.  In Paypal, go to Profile >> More Options >> Language Encoding (under Selling Preferences) >> More Options and set the Encoding to "UTF-8", select "Yes" to use the same encoding for data sent from Paypay to you, and save.
 
==What the user sees==
*If you have allowed users to create their own accounts then when they click to login, they will be presented with a screen'' Is this your first time here?'' It will give them instructions for making an account (which may be customised in the authentication common settings in ''Settings > Site administration > Plugins > Authentication > Manage authentication'') and once their account is confirmed via email they can click on a course which can be purchased and pay for it via Paypal. PayPal courses will have a dollar sign icon next to them:
 
[[File:Paypalicon.png]]
 
*Once payment is made both the user/student and the teacher/admin should have received emails from Paypal confirming the purchase.
 
==Changing the dollar symbol==
The default currency symbol for Paypal is a dollar sign. If you are using GBP or Euros or another currency, you can change this by creating your own customised icon with your choice of currency. Make it 16x 16 pixels and call it ''icon.gif'Upload your new icon via FTP to your  ''moodle directory>enrol>paypal>pix''. Your icon.gif will override the dollar sign. Make sure you refresh your page to be sure of the changes.
 
[[File:PaypalGBP.png]]
 
==Paypal capabilities==
 
*[[Capabilities/enrol/paypal:config|Configure PayPal enrol instances]]
*[[Capabilities/enrol/paypal:manage|Manage enrolled users]]
*[[Capabilities/enrol/paypal:unenrol|Unenrol users from course]]
*[[Capabilities/enrol/paypal:unenrolself|Unenrol self from the course]]


[[Category:Enrolment]]
[[fr:Inscription par Paypal]]
[[fr:Inscription par Paypal]]
[[de:Paypal-Einschreibung]]

Latest revision as of 08:34, 15 June 2012

Location: PayPal edit settings link in Site administration > Plugins > Enrolments > Manage enrol plugins

The PayPal enrolment plugin allows you to set up paid courses. The plugin has to be enabled by the site administrator (see Enrolment plugins)and then added to the course by an administrator or manager. You can then set an individual price for your course if needed.

Course settings for Paypal

Checking you have Paypal in your course

  • In a course, go to Settings> Course administration>Users>Enrolment methods
  • If you do not see PayPall, use the pull down menu "Add method" and select PayPal.
  • Make sure PayPal has its "eye" opened:

Paypalenrolmentmethod.png

Setting a price for your course

  • In Settings>Course Administration>Users>enrolment methods, click the edit/hand/pen icon to the right of the Paypal option.
  • Give a name to this enrolment method if you wish in "Custom Instance name". (You don't have to!)
  • Ensure that "allow Paypal enrolments" is set to "yes"
  • In "Enrol cost", type in the cost of your course and in "Currency" choose your currency.
  • Usually you would leave the "Assign role" as "student" unless you have a very special reason for allowing your users to enrol as, say, editing teachers etc
  • Choose an enrolmet period and/or start/end dates if desired.
  • Click the "Save changes" button.

Paypalcoursesettings.png

What the new user sees

  • When a new user clicks on your course link, having made a login to your Moodle, they will see the following screen, inviting them to go to PayPal to purchase access to your course:

Paypaluserview.png

Admin settings

  1. If you wish to allow users to make their own accounts on your site then set up Email based self registration
  2. Go to Settings>Site Administration>Plugins>Enrolments>Manage enrol plugins and enable (open the "eye" of Paypal)
  3. Click the blue Settings link to the right of the PayPal enrolment link. Here are the default settings and default settings for new instances in a course:
    1. Add the email of your Business PayPal account. The email settings are case sensitive and must exactly match that in PayPal.
    2. Choose whether to notify students/teachers/admin.
    3. Choose whether (or not) to allow the Paypal enrolment plugin by default in new courses
    4. Choose a default cost and currency. (This may be overridden in individual courses)
    5. Choose a 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 "student" unless you have a special reason for choosing another role.) This may be overridden in individual courses.
    6. Choose the default enrolment period. This may be overridden in individual courses.

What to set up in Paypal

  • Setup your PayPal account at paypal.com
  1. Create a Paypal account if you don't have one
  2. Not required but recommended for selling: Upgrade your account to "Premier" status and get "Verified"
  3. Setup IPN in Paypal to interact with Moodle. Log into Paypal, go to Profile >> More Options >> Instant Payment Notification Preferences (under Selling Preferences) >> Choose IPN Settings. Enter a URL that references your IPN file in your Moodle installation (for example: http://moodle.example.com/enrol/paypal/ipn.php)
  4. Set the Encoding to UTF-8. In Paypal, go to Profile >> More Options >> Language Encoding (under Selling Preferences) >> More Options and set the Encoding to "UTF-8", select "Yes" to use the same encoding for data sent from Paypay to you, and save.

What the user sees

  • If you have allowed users to create their own accounts then when they click to login, they will be presented with a screen Is this your first time here? It will give them instructions for making an account (which may be customised in the authentication common settings in Settings > Site administration > Plugins > Authentication > Manage authentication) and once their account is confirmed via email they can click on a course which can be purchased and pay for it via Paypal. PayPal courses will have a dollar sign icon next to them:

Paypalicon.png

  • Once payment is made both the user/student and the teacher/admin should have received emails from Paypal confirming the purchase.

Changing the dollar symbol

The default currency symbol for Paypal is a dollar sign. If you are using GBP or Euros or another currency, you can change this by creating your own customised icon with your choice of currency. Make it 16x 16 pixels and call it icon.gif Upload your new icon via FTP to your moodle directory>enrol>paypal>pix. Your icon.gif will override the dollar sign. Make sure you refresh your page to be sure of the changes.

PaypalGBP.png

Paypal capabilities