Integration Steps

Steps to integrate your OpenCart Extension with Curlec Payment Gateway.


Follow the steps given below to integrate Curlec Payment Gateway with your OpenCart Extension.

Follow the steps given below:

1.1 Install Plugin

  1. Download the latest Source code zip file of the required version of the plugin.

  2. Download the latest release of the OpenCart 4 plugin from the

    in GitHub. Tags for OpenCart 4 are opencart4-6.x.y.

    Watch Out!

    When installing the Razorpay plugin for Opencart 4, ensure that your zip folder only contains the following folders and file, with no hidden files:

    • admin/
    • catalog/
    • system/
    • install.json
  3. Download the latest release of the OpenCart 3 plugin from the

    in GitHub. Tags for OpenCart 3 are opencart3-1.x.y.

  4. For OpenCart 2,

    from GitHub. Tags for OpenCart 2 are opencart2-3.x.y.

  5. For OpenCart 1.5,

    from GitHub. Tags for OpenCart 1.5 are opencart1.5-1.x.y.

  6. Navigate to ExtensionsInstaller and click Upload. Choose the zip file.

1.2 Configure OpenCart

Configure OpenCart as given below:

  1. Log in to

    .

  2. Navigate to the Admin PanelExtensionsPayments to install the Razorpay Payment Gateway extension.

  3. Click Edit. Complete the following steps:

    1. Add in your Key_ID and Key_Secret generated from the .
    2. Change extension status to Enabled.
    3. Click Save to save the extension settings.

    Handy Tips

    Webhook is auto-configured on OpenCart 3 (versions 5.0.0 and above) and OpenCart 4 when you enter and save the API key ID and secret on the plugin settings page. You need to verify if webhooks are enabled on your

    .
    However, for versions lower than 5.0.0, you must .

    Create a Cron for Webhook using cpanel, follow the steps given below:

    1. Log on to your cPanel Interface.
    2. Go to Advanced section.
    3. Click Cron Jobs.
    4. Select the specific time from the lists provided (every 5 minutes).
    5. Enter https://<shop_url>/index.php?route=extension/payment/razorpay/rzpWebhookCron/ in the Command field.

    For more information about Cron, refer to

    .

After the integration, Razorpay will appear as a payment option on your webpage/app. You need to click the button and make a test transaction to ensure the integration works as expected. You can start accepting actual payments from your customers once the test is successful.

Open Cart

You can make test payments using one of the payment methods configured at the Checkout.

  • No money is deducted from the customer's account as this is a simulated transaction.
  • Ensure you have entered the API keys generated in the test mode in the Checkout code.

Supported Payment Methods

You can select any of the listed banks. After choosing a bank, Curlec will redirect to a mock page where you can make the payment a success or a failure. Since this is Test Mode, we will not redirect you to the bank login portals.

You can select any of the listed wallets. After choosing a wallet, you will be redirected to a mock page where you can make the payment success or a failure. Since this is Test Mode, we will not redirect you to the wallet login portals.

You can use one of the following test cards to test transactions for your integration in Test Mode.

  • Use any valid expiration date in the future in the MM/YY format.
  • Use any random CVV to create a successful payment.

Verify Payment Status

You can track the payment status from the Curlec Dashboard or poll our APIs.

To verify the payment status from the Dashboard:

  1. Log in to the and navigate to TransactionsPayments.
  2. Check if a payment_ID has been generated and note the status. In case of a successful payment, the status is marked as captured.

Follow these steps before taking the integration live:

3.1 Accept Live Payments

You can perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers.

Watch Out!

Ensure you are switching your test API keys with API keys generated in Live Mode.

To generate API Keys in Live Mode on your Curlec Dashboard:

  1. Log in to the and switch to Live Mode on the menu.
  2. Navigate to Account & SettingsAPI KeysGenerate Key to generate the API Key for Live Mode.
  3. Download the keys and save them securely.
  4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments.

3.2 Payment Capture

After payment is authorized, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time.

Watch Out

  • You should deliver the products or services to your customers only after the payment is captured. Curlec automatically refunds all the uncaptured payments.
  • You can track the payment status using our or webhooks.

  • Auto-capture payments (recommended)
    Authorized payments can be automatically captured. You can auto-capture all payments on the Curlec Dashboard.

Watch Out!

Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the

.

  • Manually capture payments
    Each authorized payment can also be captured individually. You can manually capture payments using:

Know more about

.


Is this integration guide useful?


opencart
integration
installation
test
go-live
. . .