Install and Configure OpenCart Plugin

This section describes how to install configure PayU Plugin on the OpenCart platform. If you encounter any issues while integration, refer to Troubleshooting OpenCart Integration.

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.