- 05 Sep 2024
- 2 minutes to read
Set up PayPal enrolment
- Updated on 05 Sep 2024
- 2 minutes to read
PayPal enrolment is one of the available enrolment methods for courses. You will first need to configure the settings in PayPal, then set up enrolment at the site level, and finally configure PayPal enrolment on specific courses.
PayPal setup
Before setting up PayPal enrolment in Totara you need to complete the following steps:
- Go to https://www.paypal.com and create a PayPal account. You may wish to upgrade to a Premier account and have the account Verified.
- Go to Profile > Profile and settings > My selling tools > More selling tools > PayPal button language encoding.
- Check that your website's language is set to Western European Languages.
- Click More Options and set the encoding setting to UTF-8 (this should also be used for the IPN setting).
- Go to Profile > Profile and settings > My selling tools > Getting paid and managing my risk > Instant payment notifications > Update.
- Enable IPN (instant payment notifications) and set the Notification URL to your site's URL with /enrol/paypal/ipn.php appended. For example, your URL could be https://mytotarasite.com/enrol/paypal/ipn.php.
Enable PayPal enrolment
As a Site Administrator you can set up PayPal enrolment by following these steps:
- Go to Quick-access menu > Plugins > Enrolments > Manage enrol plugins.
- If it is not already enabled, enable the Manual enrolment plugin by clicking the eye icon ().
- Enable the PayPal plugin by clicking the eye icon next to the plugin if it currently disabled ().
- Click Settings next to the PayPal plugin and configure these settings:
- PayPal business email: This must exactly match the business email in your PayPal account. Note that this setting is case sensitive.
- Default role assignment: This is the default role a user will be assigned when they purchase access to a course. Typically you would set this to Learner, but if required you can override this setting on a course-by-course basis.
- Optionally configure any other settings.
- Click Save changes.
Configuring PayPal in your courses
Once you have set up the PayPal enrolment plugin on your Totara site you can add it to courses using these steps:
- Navigate to your course, then Course administration > Users > Enrolment methods.
- If PayPal is not on the list of available enrolment methods, click the Add method dropdown menu and select PayPal.
- On the next screen, optionally give the enrolment method a Custom instance name.
- Set Allow PayPal enrolments to Yes.
- Enter the Enrol cost and select the Currency to be used.
- Optionally set an Enrolment period, Start date and End date.
- Click Add method.