Skip to main content
Available in🇮🇳 India
Follow the steps given below to integrate Razorpay Payment Gateway with your OpenCart enabled site using the Razorpay Subscription for OpenCart plugin.

Integration Steps

Follow these steps to complete the integration:

On Your OpenCart Site

  1. Install the Razorpay Subscriptions for OpenCart Plugin.
  2. Configure OpenCart Settings.
  3. Create a Plan for Subscriptions product.
  4. Test integration.

On Razorpay Dashboard

  1. Enable Webhooks.

Step 1: Install Razorpay Subscriptions for OpenCart Plugin

To install Razorpay Subscriptions for OpenCart plugin:
  1. Download the latest source code ZIP file of the Razorpay OpenCart Subscriptions plugin from the repository on Github.
    1. OpenCart 3
    2. OpenCart 2
    3. OpenCart 1.5
Watch Out!Subscriptions is available only on OpenCart 3.
  1. Copy all files/folders recursively to the OpenCart installation directory.

Step 2: Configure OpenCart Settings

  1. Log in to OpenCart.
  2. Go to the Admin PanelExtensionsPayments to install the Razorpay Payment Gateway extension.
  3. Click the edit icon and fill in the following field details.
Handy TipsWebhook is auto-configured 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 Razorpay Dashboard.
  1. Click Save to save the extension settings.
  2. Go to Admin PanelExtensionsModifications and click the refresh button to rebuild your modification cache.

Step 3: Create a Plan for Subscriptions Product

Watch Out!You can enable or disable plans only after creating them.
To create a Plan for Subscriptions product:
  1. Go to the Admin PanelRazorpay SubscriptionPlans to add a new Plan.
  2. Click Add new to create a new Plan.
  3. Enter the required details and click Save to save the Plan.

Next Steps

Step 2: Test Integration