Moodle Plugins directory: Razorpay | Moodle.org

Razorpay
Payment gateways ::: paygw_razorpay
Maintained by
Santosh Nagargoje
This is a payment gateway plugin to integrate Razorpay payment gateway with Moodle.
Latest release:
38 sites
98 downloads
2 fans
Current versions available: 1
Introduction
This is a payment gateway plugin to integrate Razorpay payment gateway with Moodle.
About Razorpay
Razorpay is an India-based fintech company that provides payment gateway services to vendors, merchants, and e-commerce platforms. It allows businesses to accept, process, and disburse payments using various modes including credit cards, debit cards, netbanking, UPI, and popular wallets.
Note: This plugin is not affiliated with razorpay.com. The Razorpay logo is a trademark of razorpay.com
Features
- Integrate razorpay payment gateway with Moodle.
- Supports INR (Indian Rupees) currency only.
Installation
- Download the zip file from github repository or moodle plugin directory.
- Extract the zip file and copy to /payment/gateway folder or Install it from Moodle's install plugin admin feature.
How to Use
- Register for Razorpay
- Go to Accounts and Settings page (https://dashboard.razorpay.com/app/account-settings) and switch to Test mode/Live mode
- Click on Api key menu and generate your Razorpay API Client ID and Secret keys
- Configure the Razorpay payment account in Moodle with those keys and your payment method
- Add 'Enrolment on payment' to the Moodle courses that you want
- Configure the enrolment method with the currency INR (Indian Rupees) only
Demo Credentials
You can use following demo(sandbox) credentials to test this plugin with your moodle setup.
- Client Id: rzp_test_kKjykaHKFgQy56
- Secret Key: mLIJrSZjIRWiWsrTzXPBp18Q
Support
If you encounter issues or bugs, please open an issue in the official GitHub repository: GitHub Issues
Author
Santosh Nagargoje
Website: https://www.santoshnagargoje.in
Useful links
Contributors
Santosh Nagargoje (Lead maintainer)
Please login to view contributors details and/or to contact them
You have mentioned "Supports INR (Indian Rupees) currency only." and "Configure the enrolment method with the currency INR (Indian Rupees) only". Since Razorpay now offers international currency payments, can you update the plugin also to support international currency?
Reference : https://razorpay.com/accept-international-payments/
Supported currencies : https://razorpay.com/docs/payments/international-payments/#supported-currencies
While the rest of the process works the same as INR, the changes will be in the - Currency ISO Code and Exponent (See the table in the above link.)
For two decimal currencies :
----------------------------------------------
"When selling a product for ₹ 1000 in the domestic market, you pass INR in the currency parameter and 100000 in the amount parameter (since the amount should be in paise).
When selling in the international market, you might want to charge $20 for the same product. In this case, you must pass USD in the currency parameter and 2000 in the amount parameter (since the amount should be in cents). For example: AED, AMD, INR and so on."
For three decimal currencies :
------------------------------------------------
When selling in the international market with a three-decimal unit, you might want to charge 99.999 KD for the same product. In this case, you must pass KWD in the currency parameter and 99999 in the amount parameter.
For zero decimal currencies :
-----------------------------------------------
When selling in the international market with a zero-decimal unit, such as Japanese Yen (JPY), which does not have a concept of decimal values, you might want to charge 99 JPY for the same product. In this case, you must pass JPY in the currency parameter and 99 in the amount parameter.