search

Payment Gateway Integration in OpenCart

What is OpenCart?

OpenCart is an open-source eCommerce platform for online merchants which provides a professional and reliable foundation to build a successful online store. This foundation appeals to a wide variety of users, ranging from seasoned web developers looking for a user-friendly interface to use to the shop owners just launching their business online for the first time. It has an extensive amount of features that give you a stronghold over the customization of your store. With OpenCart's tools, you can help your online shop live up to its fullest potential.

OpenCart with Paytm

Integrating your OpenCart site with Paytm allows you to accept payments using Paytm Payment Gateway. You can accept payments via Debit Card, Credit Card, Net Banking (supports 3D Secure), UPI or Paytm Wallet.

Before you begin to integrate the Paytm Payment Gateway on Opencart webstore, make sure you have a registered business account with Paytm. To create the same, refer to the section Generate your API Keys.

Video Tutorial

Watch in the video below to learn how to integrate Paytm Payment Gateway with your Opencart website.

 

Generate your API keys with Paytm

Note:
  1. You have to generate separate API Keys for the test and live modes. No money is deducted from your account in test mode.
  2. MID and merchant keys generation may take few minutes. In case you do not see these details, please logout and login after 5 minutes. Proceed now to generate these keys.

This extension offers smooth integration, allowing the customer to pay on your website. It works across all browsers and ensures compatibility with the latest version of OpenCart.

 

Compatibilities and Dependencies

  • PHP v5.4.0 or higher
  • PHP-curl

Installation

Using Installer

  1. Download paytm_v3.x.ocmod.zip.

  2. Log into OpenCart Webstore Admin.

  3. Navigate to the Admin Panel > Extensions > Extension installer.
     

    Opencart extention installer
  4. Click the Upload button, then select the downloaded zip file (Step 1), then click the Continue button and wait for the process to complete.

  5. Navigate to Extensions > Extensions.

  6. On the Extensions page, select Payments from the dropdown and install the Paytm Gateway extension.
     

    Opencart extention installer
  7. After installation, proceed for configuration.
     

Using FTP

  1. Download a ZIP of the repository.
     

    Prestashop clone
  2. Copy all folders (admincatalog, & system) from the upload directory of the required version, and then paste them into your OpenCart Webstore root directory.

  3. Log into OpenCart Webstore Admin.

  4. Navigate to the Admin Panel > Extensions > Extensions.

  5. On the Extensions page, select Payments from the dropdown and then install the Paytm Gateway extension.
     

    Prestashop clone
  6. After installation, proceed to configuration.

 

Configuration

Note: This plugin supports EMI Subvention and Bank offers, please reach out to us through Contact Us or your KAM to enable EMI Subvention and Bank Offers for your MID.
  1. Log into OpenCart Webstore Admin.
  2. Navigate to Extensions and then select Extensions.
  3. On the Extensions page, select Payments from the dropdown and then install the Paytm Gateway extension.
  4. Save the configuration below.
  5. Fill in the following credentials in the Paytm Payments form.

    Note:You can refer the Merchant Dashboard for these details.

     

    • Order Success Status - Order status that will set for Successful Payment
    • Order Failed Status - Order status that will set for Failed Payment
    • Total - Minimal amount required to make this payment method active
    • Geo Zone - Geo Zone of the payment method to be active
    • Status - Keep this Enabled to accept payment through Paytm
    • Sort Order - Set ordering in the payment methods list
    • Enable EMI Subvention - Select "Enable" to provide Zero/Low cost EMI
    • Enable Bank Offer - Select "Enable"  to provide Bank Offers
    • Enable DC EMI - Select "Enable" to provide EMI on Debit Card
      Note:This plugin supports Debit Card EMI, send us the user mobile number in order to check the user’s Debit Card EMI eligibility and show the applicable banks name.
    • Invert Logo: Enable it to use Paytm's invert logo for your website

      Note: You can select "Yes" if you are using dark-colored theme for your website.

  6. Your Paytm Payment Gateway is enabled. Now you can accept payment through Paytm.

Installation

Using Installer

  1. Download paytm_v2.3.ocmod.zip.

  2. Log into OpenCart Webstore Admin.

  3. Navigate to the Admin Panel > Extensions > Extension installer.
     

    Opencart extention installer
  4. Click the Upload button,  and then select the downloaded zip file (Step 1), then click the Continue button and then wait for the process to complete.

  5. Navigate to Extensions > select Extensions.

  6. On the Extensions page, select Payments from the dropdown and then install the Paytm Gateway extension.
     

    Opencart extention installer
  7. After installation, proceed for the configuration.

Using FTP

  1. Download a ZIP of the repository.
     

    Prestashop clone
  2. Copy all folders (admincatalog, & system) from upload directory of the required version, and then paste them into your OpenCart Webstore root directory.

  3. Log into OpenCart Webstore Admin.

  4. Navigate to the Admin Panel > Extensions > Extensions.

  5. On the Extensions page, select Payments from the dropdown and then install the Paytm Gateway extension.
     

    Prestashop clone
  6. After installation, proceed to configuration.

Configuration

  1. Log into OpenCart Webstore Admin.
  2. Navigate to Extensions > Extensions.
  3. Save the configurations below.

    Prestashop clone
  4. Fill in the following credentials in the Paytm Payments form.

    Note:You can refer the Merchant Dashboard for these details.
    • Order Success Status - Order status that will set for Successful Payment
    • Order Failed Status - Order status that will set for Failed Payment
    • Total - Minimal amount required to make this payment method active
    • Geo Zone - Geo Zone for the payment method to be active
    • Status - Keep this Enabled to accept payment through Paytm
    • Sort Order - Set ordering in the payment methods list
  5. Your Paytm Payment Gateway is enabled. Now you can accept payment through Paytm.

Paytm payment plugin for 2.0x version is compatible with 2.0.x, 2.1.x & 2.2.x.

 

Installation

Using Installer

  1. Download paytm_v2.0.ocmod.zip.

  2. Log into OpenCart Webstore Admin.

  3. Navigate to the Admin Panel, then go to Extensions > Extension installer.
     

    Opencart extention installer
  4. Click the Upload button, then select the downloaded zip file (Step 1), then click the Continue button and then wait for the process to complete.

  5. Navigate to Extensions > Payments and then install the Paytm gateway extension.

  6. After installation, proceed for configuration.

 

Using FTP

  1. Download a ZIP of the repository.
     

    Prestashop clone
  2. Copy all folders (admincatalog & system) from upload directory of the required version, and then paste them into your OpenCart Webstore root directory.

  3. Log into OpenCart Webstore Admin.

  4. Navigate Extensions > Payments and then install the Paytm Gateway extension.

  5. After installation, proceed for configuration.

 

Configuration

  1. Log into OpenCart Webstore Admin.
  2. Navigate Extensions > Payments and then edit the Paytm Gateway extension.
  3. Save the configurations below:
    opencart config
  4. Fill in the following credentials in the Paytm Payments form.

    Note:You can refer the Merchant Dashboard for these details.
    • Order Success Status - Order status that will set for Successful Payment
    • Order Failed Status - Order status that will set for Failed Payment
    • Total - Minimal amount required to make this payment method active
    • Geo Zone - Geo Zone of the payment method to be made active
    • Status - Keep this Enabled to accept payment through Paytm
    • Sort Order - Set ordering in the payment methods list
  5. Your Paytm Payment Gateway is enabled. Now you can accept payment through Paytm.

Paytm payment plugin for 2.0x version is compatible with 2.0.x, 2.1.x & 2.2.x.

 

Installation

Using Installer

  1. Download paytm_v2.0.ocmod.zip.

  2. Log into OpenCart Webstore Admin.

  3. Navigate to the Admin Panel > Extensions > Extension installer.
     

    Opencart extention installer
  4. Click the Upload button, then select the downloaded zip file (Step 1), then click the Continue button and then wait for the process to complete.

  5. Navigate to Extensions > Payments and then install the Paytm Gateway extension.

  6. After installation, proceed for configuration.

 

Using FTP

  1. Download a ZIP of the repository.
     

    Prestashop clone
  2. Copy all folders (admincatalog & system) from upload directory of the required version, and then paste them into your OpenCart Webstore root directory.

  3. Log into OpenCart Webstore Admin.

  4. Navigate Extensions > Payments and then install the Paytm Gateway extension.

  5. After installation, proceed for configuration.

 

Configuration

  1. Log into OpenCart Webstore Admin.
  2. Navigate Extensions > Payments and then edit the Paytm Gateway extension.
  3. Save the configurations below:
    opencart config
  4. Fill in the following credentials in the Paytm Payments form.

    Note:You can refer the Merchant Dashboard for these details.
    • Order Success Status - Order status that will set for Successful Payment
    • Order Failed Status - Order status that will set for Failed Payment
    • Total - Minimal amount required to make this payment method active
    • Geo Zone - Geo Zone for the payment method to be active
    • Status - Keep this Enabled to accept payment through Paytm
    • Sort Order - Set ordering in the payment methods list
  5. Your Paytm Payment Gateway is enabled. Now you can accept payment through Paytm.