PHPackages                             hardevine/payment - 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. hardevine/payment

ActiveLibrary[Payment Processing](/categories/payments)

hardevine/payment
=================

Laravel 5.3 Package for Integration of Latest CCAvenue Payment Gateway for PHP 7.1 (Released recently)

1.8(2w ago)0339MITPHPPHP &gt;=7.0

Since Feb 2Pushed 2w ago1 watchersCompare

[ Source](https://github.com/hardevine/payment)[ Packagist](https://packagist.org/packages/hardevine/payment)[ Docs](https://github.com/gopal-g/ccavenue)[ RSS](/packages/hardevine-payment/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (8)Dependencies (6)Versions (16)Used By (0)

CCAvenue Payment Gateway integration for Laravel (Supports PHP 7.x/8.x)
=======================================================================

[](#ccavenue-payment-gateway-integration-for-laravel-supports-php-7x8x)

[![Latest Version on Packagist](https://camo.githubusercontent.com/235c35a0fbf4ec9230a3b79fb3281126e3e6654b3c0a6d7060f67fb03ec37497/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676f70616c2d672f7061796d656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gopal-g/payment)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/914dde3a39d348646f9d35fb1c88c601b48e6539abd726121b1a015a18127d2e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676f70616c2d672f7061796d656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gopal-g/payment)

This package is built to integrate CCAvenue payment gateway into your laravel project, It is developed keeping in mind other payment gateways also but is limited to ccavenue for at the time of release.

Important
---------

[](#important)

The code is originially a fork of similar package by [softon/indipay](https://github.com/softon/indipay). But this package uses the latest SDK released by CCAvenue for `php 7.x/8.x` Since their old SDK didn't support that version.

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

[](#installation)

**Step 1:** Install package using composer

```
$ composer require hardevine/payment
```

**Step 2:** Add the service provider to the `config/app.php` file in Laravel

```
 Appnings\Payment\PaymentServiceProvider::class,

```

**Step 3:** Add an alias for the Facade to the `config/app.php` file in Laravel

```
 'Payment' => Appnings\Payment\Facades\Payment::class

```

**Step 4:** Publish the Config, Middleware &amp; Views by running in your terminal

```
  php artisan vendor:publish

```

This above step creates

- `config/payment.php`
- `app/Http/Middlewares/VerifyCsrfToken.php`
- `resources/views/vendor/payment/ccavenue.blade.php`

**Step 5:** Modify the `app\Http\Kernel.php` to use the new Middleware. This is required so as to avoid CSRF verification on the Response Url from the payment gateways. **You may adjust the routes in the config file `config/payment.php` to disable CSRF on your gateways response routes.**

```
   'App\Http\Middleware\VerifyCsrfToken',

```

to

```
   'App\Http\Middleware\VerifyCsrfMiddleware',

```

Usage
-----

[](#usage)

Edit the `config/payment.php`. Set the appropriate Gateway and its parameters. Then in your code...

```
    use Appnings\Payment\Facades\Payment;

```

Initiate Purchase Request and Redirect using the default gateway:-

```
      /* All Required Parameters by your Gateway */

      $parameters = [

        'tid' => '1233221223322',

        'order_id' => '1232212',

        'amount' => '1200.00',

      ];

      $order = Payment::prepare($parameters);
      return Payment::process($order);
```

Initiate Purchase Request and Redirect using any of the configured gateway:-

```
      /* All Required Parameters by your Gateway */

      $parameters = [

        'tid' => '1233221223322',

        'order_id' => '1232212',

        'amount' => '1200.00',

      ];

      // gateway = CCAvenue / others

      $order = Payment::gateway('NameOfGateway')->prepare($parameters);
      return Payment::process($order);
```

Get the Response from the Gateway (Add the Code to the Redirect Url Set in the config file. Also add the response route to the `remove_csrf_check` config item to remove CSRF check on these routes.):-

```

    public function response(Request $request)

    {
        // For default Gateway
        $response = Payment::response($request);

        // For Otherthan Default Gateway
        $response = Payment::gateway('NameOfGatewayUsedDuringRequest')->response($request);

        dd($response);

    }

```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email `c4gopal@gmail.com` instead of using the issue tracker.

Credits
-------

[](#credits)

- [Appnings](http://www.appnings.com)
- [Shiburaj Pappu](https://github.com/softon/indipay)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance96

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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

Every ~214 days

Recently: every ~164 days

Total

15

Last Release

20d ago

PHP version history (2 changes)1.0.0PHP ~5.6|~7.1

1.1.2PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b824f86a5d3521956ed6570841791dcbee090ca73ec417772e37abbc85d257b?d=identicon)[hardevine](/maintainers/hardevine)

---

Top Contributors

[![hardevine](https://avatars.githubusercontent.com/u/1171618?v=4)](https://github.com/hardevine "hardevine (12 commits)")[![gopal-g](https://avatars.githubusercontent.com/u/16077096?v=4)](https://github.com/gopal-g "gopal-g (4 commits)")

---

Tags

laravel 5CCAvenue Payment gatewayPHP 7.1 Integration KitAppnings Software Solutions

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/hardevine-payment/health.svg)

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

###  Alternatives

[latrell/alipay

支付宝SDK在Laravel5封装包。

40349.2k](/packages/latrell-alipay)[kingflamez/laravelrave

A Laravel Package for Flutterwave Rave

151286.1k4](/packages/kingflamez-laravelrave)[softon/indipay

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay, InstaMojo, ZapakPay, Mocker

6594.6k1](/packages/softon-indipay)[itsmurumba/laravel-mpesa

Laravel Package for Mpesa Daraja API

191.6k](/packages/itsmurumba-laravel-mpesa)

PHPackages © 2026

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