Skip to main content
A decorative thumbnail for the CCAvenue Payment Gateway for Paymenter This extension securely integrates CCAvenue with Paymenter, allowing you to accept payments through one of India’s leading gateways. CCAvenue offers 100+ payment modes and global currency support, making transactions smooth and reliable. Know more about them on their website. Supported Paymenter Versions: 1.0.x to 1.4.x (inclusive)
To use this extension, you must have:
  1. An active CCAvenue Merchant Account, and
  2. The domain registered with CCAvenue must match your Paymenter domain, including the subdomain. If it doesn’t match, update your Paymenter domain or ask CCAvenue support to change it.

Installation

Paste the two following commands exactly as it is into your terminal where Paymenter is installed. If your Paymenter installation is in a different directory, navigate to that directory instead.
cd /var/www/paymenter
mkdir -p extensions/Gateways/CCAvenue && cd $_ && wget -O CCAvenue.zip https://files.debargha.in/CCAvenue_v1.0.0.zip && unzip CCAvenue.zip && rm CCAvenue.zip
These commands can also be used to update your extension. And that’s it! Now just head to your admin panel and finish setting up the extension.

Setup

Image showing a screenshot of the configuration page To set up the gateway, just follow these steps:
  • Open your Paymenter Admin Panel.
  • In the left sidebar, scroll down and click Gateways.
  • Click the New Gateway button.
  • or directly visit by adding /admin/gateways/create to the end of your billing panel URL.

Gateway Configuration

Now you need to fill in all the required credentials. Below are the details for each field:

Required Fields

  • Name: Enter what you want your customers to see. It’s better to use something that mentions the payment methods. Recommended: UPI / CARDS / NETBANKING / WALLETS
  • Gateway: Select CCAvenue. If you don’t see it, check the troubleshooting steps.
  • Merchant ID, Access Code, Working Key: You can find these in your CCAvenue Merchant Dashboard. Put the exact values. These are production/live keys by default, but you may enter Test Keys if needed. If you do, make sure Test Mode is enabled.

Additional Fields

  • Enable Test Mode: Check this if you are using Test Keys and want to test the gateway without real payments. Do not enable this on your live/public site.
  • Enable International Payments: Check this if you want to accept payments in currencies other than INR.
    Make sure your CCAvenue account supports international payments. If you are not sure, contact CCAvenue support.
Click Create and you are done. Your CCAvenue payment gateway is now fully configured and ready to use inside Paymenter. If something doesn’t work as expected, continue to the troubleshooting for common issues and fixes.

Troubleshooting

Select your specific issue to view more information.
Re-run the installation carefully. If it still doesn’t appear, fix file permissions as required by your webserver. See Paymenter documentation for the exact permission steps.
Either:
  • Incorrect Merchant Credentials
    Your Merchant ID, Working Key, or Access Code is not valid for the current mode.
    Fix:
    • Re-enter the credentials from your CCAvenue Dashboard.
    • Make sure you are using the right set of keys:
      Test Mode OFF → Use Production Keys
      Test Mode ON → Use Test Keys only
  • Domain Mismatch
    The domain registered in CCAvenue does not match your Paymenter billing domain.
    Fix:
    • Update your Paymenter billing URL to the exact same domain registered in CCAvenue (including subdomain), OR
    • Contact CCAvenue Support and ask them to update your merchant domain to the correct one.
If you run into any other issues:
  • Double-check that everything is set up correctly,
  • Paymenter is installed properly, and
  • You are installing this extension on a supported version.
If you still face any issues, contact support.

Support

If you have followed all troubleshooting steps and still face issues, you will need to contact me for further help. Before reaching out, make sure to collect your logs. To generate the logs, run the following command:
cd /var/www/paymenter && php artisan app:logs
This command will provide you with a link to the logs. When you request support, you must share this generated link so I can review the issue. You can contact me using any of these methods: If you use Discord, it is recommended to contact me there first. If you do not receive a reply within 48 hours, you may then contact me via email.

Debugging

This step should only be done if the developer asks for it. Turning this on will expose sensitive data in your logs.
Open the extension file: /var/www/paymenter/extensions/Gateways/CCAvenue/CCAvenue.php, line 18 Edit the file and set:
CCAvenue.php
// change this line:
$this->debugMode = false;
// to:
$this->debugMode = true;
Now go back to Paymenter, do the exact action again which triggered the error. This step is important, logs are only created when the issue happens while debug mode is ON. After reproducing the error, run:
cd /var/www/paymenter && php artisan app:logs
You can share this link if someone needs to review the logs, but only with people you fully trust.
These logs contain your credentials which are sensitive information. Treat the link as private.
If you ever share the logs with someone you shouldn’t have, regenerate the Working Key from CCAvenue Dashboard.
It is recommended that you disable debug mode and delete the log file once debugging is complete.

Uninstallation

In case you want to uninstall, go to your Paymenter installation folder and delete the extension folder.
cd /var/www/paymenter
rm -rf extensions/Gateways/CCAvenue

~ Thank you for reading! Have a nice day.