PHPackages                             mr-rijal/ccavenue - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. mr-rijal/ccavenue

ActiveLibrary[Payment Processing](/categories/payments)

mr-rijal/ccavenue
=================

Laravel package for CCAvenue payment gateway integration

1.0.0(1w ago)00MITPHPPHP ^8.1CI failing

Since Mar 13Pushed 1w ago1 watchersCompare

[ Source](https://github.com/mr-rijal/ccavenue)[ Packagist](https://packagist.org/packages/mr-rijal/ccavenue)[ Docs](https://prashantrijal.com.np)[ RSS](/packages/mr-rijal-ccavenue/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (5)Versions (1)Used By (0)

CCAvenue for Laravel
====================

[](#ccavenue-for-laravel)

Laravel package for [CCAvenue](https://www.ccavenue.com/) payment gateway integration. Supports Laravel 11, 12, and 13.

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 11.x, 12.x, or 13.x

Installation
------------

[](#installation)

Install via Composer:

```
composer require mr-rijal/ccavenue
```

Publish the config and views:

```
php artisan vendor:publish --tag=ccavenue-config
```

Configuration
-------------

[](#configuration)

Add your CCAvenue credentials to `.env`:

```
CCAVENUE_MERCHANT_ID=your_merchant_id
CCAVENUE_ACCESS_CODE=your_access_code
CCAVENUE_WORKING_KEY=your_working_key
CCAVENUE_REDIRECT_URL=payment/success
CCAVENUE_CANCEL_URL=payment/cancel
CCAVENUE_CURRENCY=INR
CCAVENUE_LANGUAGE=EN
CCAVENUE_TEST_MODE=true
```

Config is merged under the `ccavenue` key (published to `config/ccavenue.php`). Set `CCAVENUE_TEST_MODE=false` for production.

For Laravel 5.x, add the response route to CSRF exceptions in `app/Http/Middleware/VerifyCsrfToken.php` (or use the published middleware). The config option `remove_csrf_check` is also available.

Usage
-----

[](#usage)

Resolve the payment gateway and create a purchase:

```
use MrRijal\CCAvenue\CCAvenue;

$ccavenue = app(CCAvenue::class);
$response = $ccavenue->purchase([
    'order_id' => 'ORD-' . uniqid(),
    'amount'   => 1000.00,
    // ... other CCAvenue parameters
]);
```

Handle the redirect response from CCAvenue in your callback controller and decode the response:

```
$ccavenue = app(CCAvenue::class);
$result = $ccavenue->response($request);
```

Or use the facade: `CCAvenue::purchase([...])`, `CCAvenue::response($request)`.

Development
-----------

[](#development)

```
# Run tests
composer test

# Code style (PHPCS)
composer check-style
composer fix-style

# Laravel Pint
composer pint
```

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT License](LICENSE).

Author
------

[](#author)

**Prashant Rijal**

Support
-------

[](#support)

- [Report an issue](https://github.com/mr-rijal/ccavenue/issues)
- [Source code](https://github.com/mr-rijal/ccavenue)

###  Health Score

38

—

LowBetter than 86% of packages

Maintenance98

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

9d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1bf3f09db608d82fb8ae800f0f738884fcd58f11bc6f1e2b11330ecb00d2528?d=identicon)[cart53](/maintainers/cart53)

---

Top Contributors

[![mr-rijal](https://avatars.githubusercontent.com/u/94687531?v=4)](https://github.com/mr-rijal "mr-rijal (4 commits)")

---

Tags

laravelpaymentpayment gatewayindiaccavenue

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mr-rijal-ccavenue/health.svg)

```
[![Health](https://phpackages.com/badges/mr-rijal-ccavenue/health.svg)](https://phpackages.com/packages/mr-rijal-ccavenue)
```

###  Alternatives

[victorybiz/laravel-crypto-payment-gateway

GoUrl.io Crypto Payment Gateway for Laravel

642.4k](/packages/victorybiz-laravel-crypto-payment-gateway)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
