OpenCart 4.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 4.0.2.3
- PHP version 8.1
- A zip file named oc_payment_billdesk.zip file of BillDesk extension, which they will get from BillDesk.
Dependency:
- Create Indian currency (INR)
- Go to System → Localisation → Currencies.
- Click on “+” icon to Add New Currency.
- Enter the details below:
| Parameter | Value |
|---|---|
| Currency Title | INR |
| Code | INR |
| Symbol Left | ₹ |
| Value | 1.00 |
| Status | Enable |
- 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.
| Parameter | Value |
|---|---|
| Country | India |
| State | Maharashtra |
| Time Zone | UTC (+00:00) |
| Currency | INR |
Integration Steps
Installation and Activation
Follow the steps below to install and activate the BillDesk OpenCart 4.0 plugin.
Installation
- In the sidebar, click on Extensions→ Installer.
- Click on Upload
- Select opencart4x_billdesk_plugin.ocmod.zip file of BillDesk extension and click on “+” icon to install
Extension Configuration
Post installation, merchant can configure the plugin to enable it and accept payments.
Enable BillDesk Extension
To enable BillDesk Extension:
- In the sidebar, click on Extensions → Extensions.
- Select Payments option from the drop-down box.
- Click “+” button of BillDesk.
- Go to Edit Extensions.
- Enter all merchant configuration details.
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.
-
Client Id - string - A client ID shared by BillDesk for accessing the Payment Gateway APIs.
-
Key ID - string - The unique identifier of the public key shared by BillDesk
-
Encryption Password - string - An encryption key that is used to protect the communication with Payment Gateway APIs.
-
Signing Password - string - A signing key that is used to protect the communication with Payment Gateway APIs.
-
Item Code - string - Item Code as shared by BillDesk team.
-
Merchant Logo - string - A URL or Base64 encoded logo of the merchant that will be visible on the payment dialog.
-
Payment Categories - 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] -
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.
-
-
Retry Count - number - Controls the number of payment re-attempts that should be allowed to users on failed payment.
-
Environment - string - Enables switching between the UAT or Production environments. Depending on this configuration, the plugin will connect to the UAT or production URLs.
-
Complete Status - Set it as "Processing".
-
Failed Status - Set it as "Failed".
-
Status - Enable status.
-
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.
- Click Save Changes.
SuccessAt 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
- Go to the store.
- Add a product to the cart and click Checkout.
- Login or create an account.
- Enter shipping details and select BillDesk as the payment method option.
- Confirm the order.
- Continue completing the payment by BillDesk. After completing the payment, the user will be redirected to the Success page.
Refund
Product Refund
- Go to menu Sales → Orders.
- Select any order with status “Completed” or “Processing”.
- Click on BillDesk tab.
- Enter Refund Amount
- Two types of refunds:
- Full refund
- Partial refund
- Click on Refund button and the refund will be initiated.
- Upon successful refund, a confirmation message will be shown on the page.
Order Listing
View Order Details
- Go to menu Sales → Orders.
- Click on the view button of respective order will display the details of that order.
Troubleshooting
For OpenCart, the merchant can find the logs present at system/Maintenance/Error Logs, 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 Code | Error Type | Error Description |
|---|---|---|
| GNAUE0006 | authentication_error | Request from unauthorized IP. |
| ORIRE0001 | invalid_request_error | Required parameter Merchant ID is missing. |
Updated 22 days ago
