Opencart is a free plugin developed in PHP used to create online shops. OpenCart provides a professional and reliable base on which an online shop can be built; this base appeals to various users. OpenCart has a list of features that provide strong control over your shop’s customization.

Install plugin for OpenCart

Download the PayU plugin

OpenCart VersionPayUI Plugin
Download Link
OpenCart v3.0.2GitHub Location
OpenCart v3.0GitHub Location
OpenCart v2.3GitHub Location
OpenCart v2.2GitHub Location
OpenCart v2.0GitHub Location

Procedure

To download and install the PayU archive for the OpenCart plugin:

  1. Ensure that the OpenCart plugin is installed.
  2. Download the PayU OpenCard integration archive for the OpenCart version you are using as listed in the Download the PayU Plugin section:
  3. Install the downloaded archive using Extensions > Extension Installer. For more information, refer to the OpenCart Documentation.

👍

Before you begin:

Register for a account with PayU before you start integration. For more information, refer to Register for a Merchant Account.

Configure OpenCart

To configure OpenCart after installing the PayU plugin:

  1. Enable PayU in Payment settings section from OpenCart admin panel.

  2. Navigate to the Payments page.

    The Payments page is displayed.

  1. Click the Edit button for the PayU entry.

    The PayU configuration page is displayed.

  1. Enter the configuration details as in the following table:
FieldDescription
Merchant ID INREnter the test key for the Test environment or the Production key for the Production environment.
Salt INREnter the test salt for the Test environment or Production salt for the Production environment.
ModeSelect any of the following gateway environments from the Mode drop-down list to which customer payment details will be redirected to.
- Test: This is the Test environment and no actual fund transfer will take place.
- Production: This is the Live environment. Use this value only for your website in production. Payments sent in the production environment will get processed. For more information, refer to Generate Merchant Key and Salt.
StatusSelect Enable from the drop-down list to enable the module.
Payment GatewaySelect PayUBiz from the drop-down list if you want to redirect to the PayUbiz page for payments.
Bank CodeSelect PayUBiz Bank Code from this drop-down list.

Reference: For more information on how to generate the Key and Salt, refer to any of the following:

  1. Map all the possible states of a transaction from PayU with the corresponding OpenCart status.

  1. Select the PayUBiz Payment Gateway method on the checkout page.
  2. Perform a test transaction.

Note: After configuring the Test environment, use the test card details to test the payment. For more information, refer to Test Cards, UPI ID and Wallets.

The successful payment confirmation message is displayed if the payment is successful.

📘

Note:

PayU recommends this step to reconcile with PayU’s database after you receive the response. Verify the transaction details using the Verification Payment API. For API reference, refer to Verify Payment API.

Troubleshooting OpenCart Integration

When you are integrating PayU plugin with OpenCart, at times you may encounter some issues. This section describes the recommended steps to troubleshoot any issues which you face while integration with OpenCart.

PayU plugin is not working

Check whether the merchant API key and Salt are configured accurately and navigate to Merchant Dashboard and verify these values. For more information, refer to Configure OpenCart. For more information on generating API key and salt, refer to Generate Test Merchant Key and Salt.