{"id":36970210,"url":"https://github.com/zhan3333/payment","last_synced_at":"2026-01-13T21:45:50.550Z","repository":{"id":57090571,"uuid":"83649752","full_name":"zhan3333/payment","owner":"zhan3333","description":"php集成支付宝（即时到帐、手机网站、移动支付、订单查询、退款、转款）、微信支付（APP支付、公众号支付、扫码支付接口）等主流支付渠道，方便扩展。提供完善的文档指导。让支付开发变得简单。","archived":false,"fork":true,"pushed_at":"2017-03-05T05:33:41.000Z","size":3287,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T15:54:00.968Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://helei112g.github.io/","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"helei112g/payment","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhan3333.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-02T07:46:15.000Z","updated_at":"2017-03-02T07:46:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zhan3333/payment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhan3333/payment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fpayment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fpayment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fpayment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fpayment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhan3333","download_url":"https://codeload.github.com/zhan3333/payment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fpayment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28401083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-13T21:45:49.868Z","updated_at":"2026-01-13T21:45:50.544Z","avatar_url":"https://github.com/zhan3333.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Software license][ico-license]](LICENSE)\n[![Latest development][ico-version-dev]][link-packagist]\n[![Monthly installs][ico-downloads-monthly]][link-downloads]\n\n-----\n\n# Payment 能够做什么 #\n\nPaymeng 主要帮助 php 开发者在服务端快速接入主流的支付平台(支付宝支付、微信支付等)。节省时间少走弯路。\n\nPayment 针对不同支付平台，提供了统一的调用方式，开发者无需再一个平台一个平台的去阅读文档、调试。所有的支付平台后台服务统一用一套代码，在支付对接模块的代码维护量大大减少，可以把更多的时间和精力花在自身产品的核心业务上\n\n### 为什么要用Payment SDK ###\n\n所有的支付官方都提供了demo，方便开发者学习使用。但是其中每一个支付 demo 都不尽相同，并且不少 官方 demo 还有不少错误，让开发者使用的时候莫名其妙。\n\n针对不同的支付，官方demo写法各异，很多还使用了老旧的 php 语法。\n\n而 **Payment SDK** 针对不同服务商的支付功能，都提供统一的调用方式，大大降低学习与使用成本。\n\n### 与其他聚合支付服务的对比 ###\n这里最主要的对比对象是ping++。当然我这个个人开发者肯定没法与之相比。首先ping++服务更多，接入的支付种类更多。开放出来的接口也更多。\n\n但是本sdk的优势也非常明显。\n- 使用项目自己部署，只需向第三方支付服务提供者付费（阿里、腾讯）。\n- 项目开源，遵循 **MIT** 许可证，大家可自由更改。\n- 根据自己需求，可以自己动手定义个性化。\n- 通过composer安装管理，方便升级。\n- 就算我以后不维护升级了，也保证你代码可用，如果用第三方聚合的支付，与第三方就有了强关联。\n\n### 其他 ###\n\n开发者只需要专注自己的业务，对于主流支付方式本sdk会持续集成\n\n*招商一网通支付 正在开发中... ...*\n\n更多详细情况请[点击这里](https://helei112g.github.io/categories/payment/)\n\n由于 `payment v1` 版本在设计开发时的缺陷，不在进行维护升级。并且 `v2` 版本也不与之兼容。建议大家都升级v2版本\n\n## 重要变更 ##\n- 支持支付宝新版本支付接口（from v2.7.0）\n- 配置文件控制权限由使用者控制（from v2.0.0）\n\n## 安装与使用Payment ##\n\n推荐大家通过composer来进行安装。\n* 方式一\n\n通过composer，这是推荐的方式，可以使用composer.json 声明依赖，或者运行下面的命令。SDK 包已经放到这里 riverslei/payment\n\n```php\n    composer require \"riverslei/payment:~2.0\"\n```\n\n放入composer.json文件中\n\n```php\n    \"require\": {\n        \"riverslei/payment\": \"~2.0\"\n    }\n```\n\n* 方式二\n直接下载安装，SDK 没有依赖其他第三方库，但需要参照 composer的autoloader，增加一个自己的autoloader程序。\n\n代码中以提供一个默认autolaod.php  可直接使用.\n\n\n**Payment v2.x**需要 PHP \u003e= 5.6，并且需要安装以下扩展：\n- cURL extension\n- mbstring\n\n**Payment v1.x**需要 PHP \u003e= 5.3 , 并且需要安装以下扩展：\n- cURL extension\n\nPayment SDK使用文档[请看这里](https://helei112g.github.io/categories/payment/)\n\n## 联系\u0026打赏 ##\n\n如果真心觉得项目帮助到你，为你节省了成本，欢迎鼓励一下。\n\n如果有什么问题，可通过以下方式联系我。提供有偿技术服务。\n\n也希望更多朋友可用提供代码支持。欢迎交流与大赏。\n\n**邮箱**：dayugog@gmail.com\n\n**不错，我要鼓励一下**\n\n![image](http://ol59nqr1i.bkt.clouddn.com/ali-wx-pay.jpg?imageView2/2/w/500)\n\n**打赏名单**\n\n名字 | 金额 | 说明 | 时间\n---|---|---|---\n彦 | 88 | 感觉还不错，特打赏88元，略表感谢。 | 2017-02-28\n汤明洋 | 66.66 | 支持一下 | 2017-02-19\n李仕建同学 | 18.88 | 新春快乐 | 2017-02-09\n凡额 | 50.00 | 帮助调试，谢谢了 | 2017-01-18\nThans秦 | 66.66 | 商业使用 | 2017-01-08\nJohn | 10.00 | 设计很棒 | 2017-01-06\nDavidw | 699.00 | 支持开发2.0 | 2016-12-15\n宁静致远 | 10.00 | 鼓励你，加油额 | 2016-12-13\nk7 | 8.00 | 批量付款，一次成功 | 2016-11-24\n洋 | 50.00 | 资助开源 | 2016-11-23\n张仲东 | 50.00 | 接口封装的不错 | 2016-11-17\n放下...快乐 | 1000.00 | 支付宝即时到帐处理 | 2016-11-15\nRobin Core Animation | 50.00 | 解决微信支付问题 | 2016-11-04\n5Z4 | 20.00 | 解决回调问题 | 2016-10-31\n哈罗Joe | 1.00 | 加油~~ | 2016-8-23\n小兵~招UI前端 | 50.00 | 继续努力,喝杯水吧:-) | 2016-8-14\n尊称韦爵爷 | 1.00 | 赶紧出个yii的扩展 | 2016-7-22\n一米市集 | 1000.00 | 希望提供技术长期合作 | 2016-7-20\n张松 | 15.00 | 不错，已用到项目中 | 2016-6-17\n\n### License ###\n\nThe code for Payment is distributed under the terms of the MIT license (see [LICENSE](LICENSE)).\n\n\n[ico-license]: https://img.shields.io/github/license/helei112g/payment.svg\n[ico-version-dev]: https://img.shields.io/packagist/vpre/riverslei/payment.svg\n[ico-downloads-monthly]: https://img.shields.io/packagist/dm/riverslei/payment.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/riverslei/payment\n[link-downloads]: https://packagist.org/packages/riverslei/payment/stats","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhan3333%2Fpayment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhan3333%2Fpayment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhan3333%2Fpayment/lists"}