1. Download the Plugin

Obtain the Plugin: Download the official PayHere Plugin for Moodle from the provided link. Ensure you download the correct version compatible with your Moodle installation.


2. Moodle Installation

Access Moodle Administration: Log in to your Moodle site as an administrator.
Navigate to Plugin Installation: Go to Site administration > Plugins > Install plugins.
Upload the Plugin: Click "Choose a file," select the downloaded plugin zip file, and upload it.
Select Plugin Type: Click "Show more..." and choose "Enrolment method (enrol)" as the plugin type.
Complete Installation: Follow the on-screen instructions, including database upgrades, to complete the plugin installation.


3. Configure Plugin Settings

Access Plugin Settings: Navigate to Site administration > Plugins > Plugins overview > PayHere > Settings.

Enter Merchant Credentials:
Merchant ID: Obtain your unique Merchant ID from your PayHere account (Settings > PayHere Plugins).
Merchant Secret: Obtain your Merchant Secret from your PayHere account (Settings > PayHere Plugins).

Sandbox Mode: Disable Sandbox Mode: Uncheck the "Use PayHere Sandbox" option for production environments.
Enable Sandbox Mode: Check the box if you are testing the integration with a PayHere Sandbox account.

Configure Other Settings:
Notify Students: Enable notifications to alert students about payment status.
Enrol Cost: Define the course enrollment fee.
Currency: Select the desired currency for payments.
Save Changes: Click "Save changes" to apply your settings.


4. Enable PayHere as an Enrolment Method

Navigate to Enrolment Methods: Go to Site administration > Plugins > Manage enrol plugins.
Enable PayHere: Find "PayHere" in the list and click the eye icon to enable it.


5. Add PayHere to a Course

Access Course Settings: Navigate to the specific course and click the Gear icon.
Select "Participants" from the sidebar.
Add Enrolment Method: Click the Gear icon on the right and select "Enrolment methods."
Choose PayHere: Select "PayHere" from the "Add method" list.
Configure Enrolment Details: Fill in the required details for the PayHere enrolment method (e.g., enrollment cost, payment instructions).
Add Method: Click "Add method" to enable PayHere enrolments for the selected course.
By following these steps, you can successfully integrate the PayHere plugin with your Moodle website, enabling seamless online payment processing for your courses.



Our Trusted Partners

Quilgo