1. Build Integration
Steps to integrate your OpenCart Extension with Razorpay Payment Gateway.
Follow the steps given below to integrate Razorpay Payment Gateway with your OpenCart Extension.
- Download the latest Source code zip file of the required version of the plugin.
-
Download the latest release of the OpenCart 4 plugin from the
in GitHub. Tags for OpenCart 4 are opencart4-6.x.y.Watch Out!
When installing the Razorpay plugin for Opencart 4, ensure that your zip folder only contains the following folders and file, with no hidden files:
admin/
catalog/
system/
install.json
-
Download the latest release of the OpenCart 3 plugin from the
in GitHub. Tags for OpenCart 3 are opencart3-1.x.y. -
For OpenCart 2,
from GitHub. Tags for OpenCart 2 are opencart2-3.x.y. -
For OpenCart 1.5,
from GitHub. Tags for OpenCart 1.5 are opencart1.5-1.x.y.
-
- Navigate to Extensions → Installer and click Upload. Choose the zip file.
Configure OpenCart as given below:
- Log in to .
- Navigate to the Admin Panel → Extensions → Payments to install the Razorpay Payment Gateway extension.
- Click Edit. Complete the following steps:
- Add in your Key_ID and Key_Secret generated from the .
- Change extension status to Enabled.
- Click Save to save the extension settings.
Handy Tips
Webhook is auto-configured on OpenCart 3 (versions 5.0.0 and above) and OpenCart 4 when you enter and save the API key ID and secret on the plugin settings page. You need to verify if webhooks are enabled on your
.However, for versions lower than 5.0.0, you must .
Create a Cron for Webhook using cpanel, follow the steps given below:
- Log on to your cPanel Interface.
- Go to Advanced section.
- Click Cron Jobs.
- Select the specific time from the lists provided (every 5 minutes).
- Enter
https://<shop_url>/index.php?route=extension/payment/razorpay/rzpWebhookCron/
in the Command field.
For more information about Cron, refer to
.You can track the payment status from the Razorpay Dashboard or poll our APIs.
- Log in to the and navigate to Transactions → Payments.
- Check if a
payment_ID
has been generated and note the status. In case of a successful payment, the status is marked ascaptured
.
to check the payment status.
Step 2:
Is this integration guide useful?