Plugin for Moodle

Integrating PayHere with your Moodle website is super easy with our PayHere Plugin for Moodle. You just have to download it from from following link, upload it to your server & configure it with your PayHere Account details to start accepting online payments via PayHere.

Please refer the detailed steps below.

Moodle 3.9+ Installation

  1. Download the PayHere Plugin for Moodle directly from here
  2. Login to your Moodle Administrator page
  3. Navigate to Site Administration > Plugins > Install plugins
  4. Click 'Choose a file' > 'Upload a file' > 'Choose file' and select the plugin zip file and confirm
  5. Click 'Show more...' and select 'Enrolment method (enrol)' as the Plugin type and confirm
  6. Click 'Continue' after plugin validation completes
  7. Click 'Continue' once more in the next page
  8. Click 'Upgrade Moodle database now', then 'Continue' in the following page
  9. Installation is now complete. Follow the next section to complete setup.

Plugin Settings

  1. Navigate to Site administration > Plugins > Plugins overview > PayHere > Settings (if settings are not automatically shown)
  2. Enter your Merchant ID (You can find it on the Settings > PayHere Plugins section of your PayHere account)
  3. Enter your Merchant Secret (You can find it on the Settings > PayHere Plugins section of your PayHere account)
  4. Do not tick the checkbox to Use PayHere Sandbox (Tick it only if you're testing your integration with a PayHere Sandbox Account)
  5. Fill in other settings such as 'Notify students', 'Enrol cost', 'Currency', etc.
  6. Select 'Yes' in the 'Allow PayHere enrolments' box
  7. Click Save changes
  8. Navigate to Site administration > Plugins > Manage enrol plugins
  9. Scroll down to find 'PayHere' and click on the eye icon to enable PayHere as an Enrolment Method

Add Enrolment Method

To add PayHere as an enrolment method, you must add it to your course.

  1. Navigate to Site administration > Courses > Manage courses and categories
  2. Select the Gear icon on the course you wish to add PayHere as an enrolment method
  3. Click Participants from the sidebar
  4. Click the Gear icon on the right and select 'Enrolment methods'
  5. Select PayHere from the Add method list
  6. Fill in the enrolment details as required and click 'Add method'
Still need help? Get in touch!
Last updated on 29th Apr 2024