API ReferenceIntegrationsKnowledge Base

CS-Cart Plugin

CS-Cart is a powerful and flexible ecommerce shopping cart application. CS-Cart includes all the functionality you need to build a full-featured online store, including multi-store support that can be set up and maintained in a single administration panel. CS-Cart is also available with a Multi-Vendor option. Multi-Vendor is an enhanced ecommerce platform that supports multiple independent sellers in an online marketplace.

Integrating your CS-Cart store with Razorpay allows you to accept payments on your CS-Cart site via the Razorpay Payment Gateway. You can accept payments via debit card, credit card, netbanking (supports 3D Secure), UPI or through any of our supported wallets.

The plugin offers seamless integration, allowing the customer to pay on your website without being redirected. This allows the plugin to work across all browsers and ensures compatibility with the latest version of CS-Cart.


  1. Ensure you have the latest version of CS-Cart installed.
  2. Download the latest Source code zip file from the releases section. Unzip the repository.
  3. Run the install.razorpay.sql file, that can be found inside the unzipped package, against your CS-Cart database. To do this you can either:
    • Use phpmyadmin to import the file into your CS-Cart database.
    • Copy and paste the content and run it directly in your mysql shell.
  4. Upload the rest of the contents of the plugin to your CS-Cart Installation directory.
    1. Content of app folder goes in app folder in your CS-Cart Installation directory.
    2. Content of design folder goes in the design folder in your CS-Cart Installation directory.


  1. Log into CS-Cart as administrator.
  2. Navigate to AdministrationPayment Methods.
  3. Add a new payment method.
  4. Select Razorpay from the list and then click Save. Select cc_outside.tpl for the template.
  5. Navigate to the Configure tab.
  6. Enter your Razorpay <key_id> and <key_secret> and click Save. These API Keys can be generated from your Dashboard.

Generate API Key#

  1. Log into your Dashboard with appropriate credentials.
  2. Select the mode (Test or Live) for which you want to generate the API key. Note:
    You have to generate separate API Keys for the test and live modes. No money is deducted from your account in test mode.
  3. Navigate to SettingsAPI KeysGenerate Key to generate key for the selected mode.

The Key Id and Key Secret appear in a pop-out window as shown below:

After generating the keys from the Dashboard download and save them securely. If you do not remember your API Keys, you need to re-generate it from the Dashboard and replace it wherever required.