Download the PHP package zjpay/laravel-cpcn without Composer
On this page you can find all versions of the php package zjpay/laravel-cpcn. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-cpcn
laravel-cpcn
基于《中金支付 报文交换技术规范 第2部分 壹企付 V2.3.4》实现的 Laravel Composer 包。
支持:
TxCode通用调用(覆盖全部接口)- 自动路由到测试/生产、普通网关/文件网关/聚合网关
message + signature协议封装- 请求签名、响应验签(RSA)
- 异步通知验签与解析
1. 安装
发布配置:
2. 配置
在 .env 中设置:
3. 通用调用(推荐)
4. 常用便捷方法
5. 异步通知验签
6. 网关路由策略(默认)
- 文件网关:
4600,4698 - 聚合网关:
5012 - 其余
TxCode:普通网关
可在 config/cpcn.php 的 routing 中调整或新增。
7. 注意事项
- 文档附录明确要求提交
message、signature参数;缺失可能返回240001。 - 返回
2000仅代表系统受理成功,最终业务结果请看Body.ResponseCode/Status等业务字段。 TxSN默认自动生成(17位时间戳前缀 + 随机串,总长 32)。
8. 自动发版与 Packagist 同步
仓库已内置:
.github/workflows/release.yml:push main时按 Conventional Commits 自动语义化发版(GitHub Release + tag).github/workflows/packagist-sync.yml:push main/tag时主动通知 Packagist 更新
请在 GitHub 仓库 Settings -> Secrets and variables -> Actions 添加:
PACKAGIST_USERNAME:你的 Packagist 用户名PACKAGIST_TOKEN:你的 Packagist API Token
建议提交信息遵循 Conventional Commits(决定版本号):
fix:=> patchfeat:=> minorfeat!:或包含BREAKING CHANGE:=> major
All versions of laravel-cpcn with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
guzzlehttp/guzzle Version ^7.8
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.8
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
The package zjpay/laravel-cpcn contains the following files
Loading the files please wait ...