nusagates/larapay
Composer 安装命令:
composer require nusagates/larapay
包简介
Laravel helper for iPaymu integration
README 文档
README
Laravel package for easy integration with payment gateways. Developed using the Laravel 11 environment.
WARNING This package is still in development and may contain bugs. Please use it at your own risk.
Api Payment Gateway Used
Installation
The best way to use this package is using composer
composer require nusagates/larapay=dev-master
Then copy config file from vendor to your project config with simple run command bellow:
php artisan vendor:publish --tag=larapay-config
Requirement
Create an account on iPaymu and then get va Number and API Key from dashboard.
Config
From your project at config/larapay.php, set virtual account and api key corresponds to your iPaymu account at dashboard.
return [ 'va' => env('LARAPAY_VA', '000000XXXXXXXXXX'), 'api_key' => env('LARAPAY_API_KEY', 'SANDBOXXXX-XXXX-XXX'), 'mode' => env('LARAPAY_MODE', 'sandbox'), // sandbox | production ... ];
Logging
Larapay allows saving request data to your log file. To enable this, simply set LARAPAY_LOG=true.
Every time a request is made to an API, the request data payload will be saved.

Usage
With simple put class of iPaymu to your method of controller.
use Nusagates\Larapay\Vendors\iPaymu\Ipaymu; public function index(Ipaymu $iPaymu) { return $iPaymu->getBalance(); }
or fluently
use Nusagates\Larapay\Facades\Ipaymu; Ipaymu::getBalance();
Retrieve Balance Information
$iPaymu->getBalance();
Retrieve Transaction History
$iPaymu->getHistory();
nusagates/larapay 适用场景与选型建议
nusagates/larapay 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 21 次下载、GitHub Stars 达 2, 最近一次更新时间为 2024 年 06 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 nusagates/larapay 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nusagates/larapay 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-06-28