PHPackages                             cart53/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. cart53/ccavenue

ActiveLibrary[Payment Processing](/categories/payments)

cart53/ccavenue
===============

Laravel Package for Integration of Latest CCAvenue Payment Gateway for PHP 7+

1.1(3y ago)0230↑130.8%MITPHPPHP &gt;=8.0CI failing

Since Sep 25Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/cart53/ccavenue)[ Packagist](https://packagist.org/packages/cart53/ccavenue)[ Docs](https://cart53.com)[ RSS](/packages/cart53-ccavenue/feed)WikiDiscussions main Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (2)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

35

—

LowBetter than 80% of packages

Maintenance57

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

1332d 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

laravelCCAvenue Payment gatewayPHP 7 Integration KitCart53 Solutions

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[henryejemuta/laravel-monnify

A laravel package to seamlessly integrate monnify api within your laravel application

132.1k](/packages/henryejemuta-laravel-monnify)[asciisd/knet

Knet package is provides an expressive, fluent interface to KNet's payment services.

141.1k](/packages/asciisd-knet)

PHPackages © 2026

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