Enrol Razorpay Plugin Documentation
Razorpay is the most integrated and world-class payment gateway. Its futuristic features handle end to end the transaction in a matter of minutes. This plugin has all the settings for development as well as for production usage. Add a price to your courses and check out quickly with Razorpay Payment. Razorpay is a user-friendly payment solution that allows for secure transactions. This plugin includes a number of payment processing services, including the ability to UPI, Wallet, Pay Later payments. It is easy to install, setup and effective.
Features include:
- Two-factor authentication security while the payment is processed giving you the most secure Payment processing confidence ever.
- Start and end payments on the same page without moving elsewhere. All necessary redirection is handled within a popup.
- Full course name and course logo / Site logo all details in checkout popup.
- PHP is version 5.3 or greater (compatible with the latest PHP 8.0 too)
- Moodle 3.0
Method I – Download Razorpay Payment
- Download the plugin from the Moodle.org : (link will be available soon)
- Open your Moodle Site Administrator Page and navigate to the Plugin menu option. From the Plugin menu list, select Install Plugin from Zip File option.
- Copy and paste the Razorpay file downloaded from the Moodle site
- Once installed select “Install Plugin from Zip File” to get started instantly
Method II – Add RazorpayPayment
- Go to Moodle.org and navigate to the Plugins menu option
- Once the Plugin page loads select the Add New option.
- On the Add New page drag your mouse to the Search field and type Razorpay (Plugin will be available soon at moodle.org)
- Once the Razorpay Plugin option appears, select the Install button
- Once Installed click on the Activate button to get started with Moodle
- Install and Activate Razorpay Payment
- Next the Moodle database will be upgraded. Though you can already set up the plugin options at this stage, it is recommended to leave the plugin options at the default settings at first and just click Save Changes to continue.
Method III – Installing manually at the server
- If you can’t deploy the plugin code via the administration web interface, you have to copy it to the server file system manually
- Log into your server admin, your destination will be: /yourmoodle/enrol/ and Unzip the plugin file
- In your Moodle site (as admin) go to the dashboard, you will get the installation prompt.
Then follow the same process to “Upload and install via ZIP file”
- Once razorpay is active, you will be redirected to the set up page.
- Add Merchant ID, key ID and key Secret obtained from Razorpay.
- Enable Web Service via Server >> Web Service >> Overview and Enable web services
- Make sure to enable the REST API via Site administration >> Server >> Web services >> Manage protocols
- Also create the token via Site administration >> Server >> Web services >> Manage tokens. At the time of generating the token, make sure to select the “Administrator” as a user. Copy the token generated here.
- Now Go back to your razorpay settings page and add the token here.
- Enable Razorpay as an enrollment option.
- Choose Enroll button Color : This option lets you set the desired colour for the enrollment button
You can set two types of cost :
- Global : The global Course determines the default price of each course, in case the course doesn’t have any price assigned to it. In order to set this up, follow these steps :
- In Course Administration > Plugins > Enrolment methods, click the edit/hand/pen icon to the right of the Razorpay option.
- Set global course cost under “Enrol cost” option
- Using the “Currency” settings, you can set the currency your site will be using for the course.
- Per Product : In order to set individual cost for each course, you need to navigate to the course. Under the Participant tab, you can select the Enrollment option as Razorpay.
- Optional: Give a name to this enrolment method if you wish in “Custom Instance name”
- Ensure that “Allow Razorpay 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
- If you want to limit the number of users that can be enrolled using this, please put a numerical value in the ‘Max Enrolled Users’ field.
- Choose an enrollment period and/or start/end dates if desired.
- Click the “Save changes” button.
Admin can uninstall this plugin from – Site administration > Plugins > Plugins overview > Uninstall [ Enrol Razorpay ].
Note: Only Admin can uninstall the plugin.
If you encounter issues with the Enrol Razoorpay Plugin, consider the following troubleshooting steps:
- Check your Moodle version and plugin compatibility.
- Verify that the plugin is enabled in the “Manage plugins” section.
- Check server logs for any error messages related to the plugin.
- Consult with Erudisiya or plugin documentation for additional support.
For plugin support and feedback, contact our support team at [contact.erudisiya@gmail.com].
