mr-rijal/ccavenue
Composer 安装命令:
composer require mr-rijal/ccavenue
包简介
Laravel package for CCAvenue payment gateway integration
README 文档
README
Laravel package for CCAvenue payment gateway integration. Supports Laravel 11, 12, and 13.
Requirements
- PHP 8.1+
- Laravel 11.x, 12.x, or 13.x
Installation
Install via Composer:
composer require mr-rijal/ccavenue
Publish the config and views:
php artisan vendor:publish --tag=ccavenue-config
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
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
# Run tests composer test # Code style (PHPCS) composer check-style composer fix-style # Laravel Pint composer pint
License
This package is open-sourced software licensed under the MIT License.
Author
Prashant Rijal
https://prashantrijal.com.np
Support
mr-rijal/ccavenue 适用场景与选型建议
mr-rijal/ccavenue 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「CCAvenue Payment gateway」 「PHP 7 Integration Kit」 「Cart53 Solutions」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mr-rijal/ccavenue 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mr-rijal/ccavenue 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mr-rijal/ccavenue 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel 5.3 Package for Integration of Latest CCAvenue Payment Gateway for PHP 7.1 (Released recently)
CC Avenue Payment Gateway for OmniPay
Includes Omnipay payment processing library and all officially supported gateways
Laravel 5.3 Package for Integration of Latest CCAvenue Payment Gateway for PHP 7.1 (Released recently)
The Laravel 10+ Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay, InstaMojo, ZapakPay, Paytm, Mocker.
Alfabank REST API integration
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-13