Prerequisites
- Create a Razorpay account at https://razorpay.com
- Generate API Keys from the Dashboard. You can use the Test Keys for a sandbox experience. No money will be deducted from your account when making test payments. Please use the Live Keys when going live with the application.
Separate Set of API Keys in Test and Live Mode
You have to generate a separate set of API keys for Live and Test modes. Know more about API Keys.
Installation
- Copy the plugin's (uncompressed) folder into the script's plugins folder like this:
/extras/plugins/razorpay/ - Go to your Admin panel → Add-ons (and click on "Install") to install it.
Compatibility
- v2.1.0 => LaraClassifier v15.0.0+ and JobClass v14.0.0+
- v2.0.0 => LaraClassifier (v14.0.0 to v14.2.0) and JobClass (v13.0.0 to v13.2.0)
- v1.4 => LaraClassifier (v12.0.0 to v13.0.0) and JobClass (v11.0.0 to v12.0.0)
- v1.3 => LaraClassifier (v11.0.0 to v12.2.4) and JobClass (v10.0.0 to v11.2.4)
- v1.2 => LaraClassifier (v10.2.0 to v10.2.6) and JobClass (v9.2.0 to v9.2.6)
- v1.1 => LaraClassifier (v10.2.0 to v10.2.6) and JobClass (v9.2.0 to v9.2.6)
- v1.0 => LaraClassifier (v10.0.0 to v10.1.4) and JobClass (v9.0.0 to v9.1.5)
Update
Replace all the plugin's files on your server.
Configuration
Add the settings below in the script's /.env file on your server:
RAZORPAY_KEY_ID=
RAZORPAY_KEY_SECRET=
Example of use:
RAZORPAY_KEY_ID=your-razorpay-key-id
RAZORPAY_KEY_SECRET=your-razorpay-key-secret
NOTE: To place a test order with Razorpay's legacy Payment API, you have to:
- You can provide your Razorpay merchant ID with the variable
RAZORPAY_MERCHANT_ID=in the/.envfile (optional). - You can add your website logo on the payment page with the variable
RAZORPAY_LOGO_URL=in the/.envfile. Example:RAZORPAY_LOGO_URL=https://domain.tld/images/logo.png(optional) - You can also customize the Razorpay modal color with the variable
RAZORPAY_THEME_COLOR=and the logo padding with the variableRAZORPAY_THEME_IMAGE_PADDING=in the/.envfile (optional).
Translation
To translate this plugin into your language:
- Go to the languages folder at
/extras/plugins/razorpay/lang/ - Duplicate the folder
/extras/plugins/razorpay/lang/en/to/extras/plugins/razorpay/lang/<code>/NOTE: Don't forget replace<code>by your language code (e.g. "de" for German language). - Open the file
/extras/plugins/razorpay/lang/<code>/messages.phpand translate it. NOTE: To translate the file, you must change the values and not the keys of PHP array.
Uninstallation
To uninstall this plugin, go to your Admin panel → Add-ons (and click on "Uninstall") to uninstall it.
Removing
To remove this plugin:
- Uninstall it
- Go in the folder
/extras/plugins/and remove the folderrazorpay/.