OpenCart 3.0

Introduction

OpenCart helps merchants set up a new user-friendly store in minutes. With the BillDesk OpenCart plugin, the merchant can start accepting seamless payments on this store.

Merchants can download the plugin with the following link.

Prerequisites

Ensure that the merchant has:

  • OpenCart version 3.0
  • PHP version 7.4
  • A zip file named opencart-billdesk-plugin.ocmod.zip file of BillDesk extension, which they will get from BillDesk.

Dependency:

  • Create Indian currency (INR)
  1. Go to System → Localisation → Currencies.
  2. Click on “+” icon to Add New Currency.
screencapture-apache-wd-wp-admin-edit-php-2022-11-17-16_25_56.png
  1. Enter the details below:
Currency TitleINR
CodeINR
Symbol Left
Value1.00
StatusEnable
  1. Click on Save Changes.
  • Set Default country as India and Currency as INR.
    • In System → Settings, select Edit icon.
    • In Local tab, select Country as India and Currency as INR.
CountryIndia
StateMaharashtra
Time ZoneUTC (+00:00)
CurrencyINR
📘

Note

Click Modification → Refresh for every change. Whenever the merchant enables, disables, or deletes a modification, click on the Refresh button to rebuild the merchant's modification cache.

Integration Steps

Installation and Activation

Follow the steps below to install and activate the BillDesk OpenCart 3.0 plugin.

Installation

  1. In the sidebar, click on Extensions→ Installer.
  2. Click on Upload. Select the billdesk.ocmod.zip file of BillDeskextension to complete the installation.

Extension Configuration

Post installation, merchant can configure the plugin to enable it and accept payments.

Enable BillDesk Extension

To enable BillDesk Extension:

  1. In the sidebar, click on Extensions → Extensions.
  2. Select Payments option from the drop-down box.
  1. Click “+” button of BillDesk.
  2. Go to Edit Extensions.
  1. Enter all merchant configuration details and save changes.

Ensure that the merchant has obtained necessary details like Merchant ID, Merchant Key, etc. from BillDesk. The configuration page looks as above.

  • Merchant Id - string - This is the unique ID created by BillDesk to identify the merchant.

  • Merchant Key - string - An encryption key that is used to protect the communication with Payment Gateway APIs.

  • Client Id - string - A client ID shared by BillDesk for accessing the Payment Gateway APIs.

  • Currency - Currency code (ISO 4217) for the currency to be used in the payment. For Indian Rupees, use code 356.

  • Merchant Logo - string - A URL or Base64 encoded logo of the merchant that will be visible on the payment dialog.

  • Item Code - string - Item Code as shared by BillDesk team.

  • Environment - string - Enables switching between the UAT or Production environments. Depending on this configuration, the plugin will connect to the UAT or production URLs.

  • Payment Category - string - Merchant can configure Allowed Payment categories at the BillDesk backend. This ensures that only the configured payment categories enabled for the merchant will be displayed. However, this option also allows the merchant to override the payment category configuration.

    For example, if a merchant wants to show cards as the only payment option, they can configure it using this setting. Merchant must mention all allowed payment methods as comma-separated values.

    Note: Payment methods can have dynamic names. The valid payment category codes are as follows:
    Allowed values: [card, emi, nb, upi, wallets, qr, gpay]

  • Retry Count - number - Controls the number of payment re-attempts that should be allowed to users on failed payment.

  • Child Window - number - Enables or disables the child window.

    • True/Enabled - If it is enabled, the modal opens the bank's page for processing in another window.
    • False/Disable - If it set to disabled, the modal redirects the merchant page to bank URLs for processing instead of opening them in another window.
  • Complete Status - Select Yes to set as Complete.

  • Status - Select Yes to enable the BillDesk Payment Integration.

  • TEST PG CONNECTIVITY - Confirm the successful configuration by clicking on 'Test PG Connectivity'. If the configuration was not successful, check Troubleshooting for error code analysis.

  1. Click Save Changes.
👍

Success

At this stage, the BillDesk Extension is configured completely. Merchant will be able to pay via the BillDesk Payment Integration.

Features

BillDesk OpenCart extension comes with some exclusive features.

Payment

Placing an Order

  1. In the website, login or create an account.
  2. Add a product to the cart and click Checkout.
  3. Enter details and repeat step 3 and step 4 to add more products to the merchant's cart.
  4. Select Pay by BillDesk, then select the Terms & Conditions check box and click on Continue.
  5. Confirm the order.
  1. Continue completing the payment by BillDesk. After completing the payment, the user will be redirected to the Success page.
  2. The user flow is depicted in the screenshots below:

Refund

Product Refund

  1. Go to menu Sales → Orders.
  • Select any order with status “Completed” or “Processing”.
  1. Click on BillDesk tab.
  2. Enter Refund Amount
  • Two types of refunds:
    • Full refund
    • Partial refund
  1. Click on Refund button and the refund will be initiated.
  1. Upon successful refund, a confirmation message will be shown on the page.

Product Returns

For the product returns settings management, please follow the below link:

https://webocreation.com/blog/how-product-returns-are-handled-in-opencart-3-opencart-user-manual/

Order Listing

View Order Details

  1. Go to My Account Page.
  2. Click on History.
  3. Click on the View icon in the row of an order.
📘

Note

Merchant will get detailed information about the transactions and their current status.

Troubleshooting

For Open-cart, there is an Open-cart specific logs present at system/Maintenance/Error Logs and a plugin specific log file present at system/storage/logs/oc_billdesk-yyyy-mm-dd.log, where the merchant can check the reason of failure.

To confirm that PG connection is established, go to the Configuration page and click on TEST PG CONNECTIVITY.

Case 1: PG connectivity is successful.

Case 2: PG connectivity is unsuccessful.

If an error occurs during the connection, please refer to the following table:

Error CodeError TypeError Description
GNAUE0006authentication_errorRequest from unauthorized IP.
ORIRE0001invalid_request_errorRequired parameter Merchant ID is missing.