1. Build Integration

Steps to integrate your CS-Cart website with Razorpay Payment Gateway.


Follow the steps given below to integrate Razorpay Payment Gateway with your CS-Cart website.

Installation🔗

  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.

Configuration🔗

  1. Log into CS-Cart as administrator.
  2. Navigate to Administration → Payment 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 the Dashboard.

Verify Payment Status🔗

You can track the payment status from the Razorpay Dashboard, subscribe to the Webhook event or poll our APIs.

Verify Payment Status From Dashboard🔗

  1. Log into the Dashboard and navigate to Transactions → Payments.
  2. Check if a payment_ID has been generated and note the status. In case of a successful payment, the status is marked as captured.

Subscribe to Webhook events🔗

You can use Razorpay Webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to set up Webhooks.

Example🔗

If you have subscribed to the order.paid webhook event, you will receive a notification every time a customer pays you for an order.

Poll APIs🔗

Poll Payment APIs to check the payment status.

×