{"id":15033451,"url":"https://github.com/exrick/xpay","last_synced_at":"2025-05-14T14:08:16.530Z","repository":{"id":37752354,"uuid":"114011453","full_name":"Exrick/xpay","owner":"Exrick","description":"XPay个人免签收款支付系统 完全免费 资金直接到达本人账号 支持 支付宝 微信 QQ 云闪付 无需备案 无需签约 无需挂机监控APP 无需插件 无需第三方支付SDK 无需营业执照身份证 只需收款码 搞定支付流程 现已支持移动端支付 ","archived":false,"fork":false,"pushed_at":"2024-08-26T16:10:08.000Z","size":12147,"stargazers_count":4944,"open_issues_count":34,"forks_count":1111,"subscribers_count":147,"default_branch":"master","last_synced_at":"2025-04-09T11:01:52.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://xpay.exrick.cn/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Exrick.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-12T16:11:19.000Z","updated_at":"2025-04-07T22:01:19.000Z","dependencies_parsed_at":"2024-11-01T13:42:53.038Z","dependency_job_id":null,"html_url":"https://github.com/Exrick/xpay","commit_stats":{"total_commits":60,"total_committers":1,"mean_commits":60.0,"dds":0.0,"last_synced_commit":"f4392b3d9db92bc70f995df13b221e6818feb097"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exrick%2Fxpay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exrick%2Fxpay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exrick%2Fxpay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exrick%2Fxpay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Exrick","download_url":"https://codeload.github.com/Exrick/xpay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254160229,"owners_count":22024567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-09-24T20:21:15.400Z","updated_at":"2025-05-14T14:08:16.499Z","avatar_url":"https://github.com/Exrick.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XPay个人收款支付系统\n[![AUR](https://img.shields.io/badge/GPL-v3-red)](https://github.com/Exrick/xpay/blob/master/License)\n[![](https://img.shields.io/badge/Author-Exrick-orange.svg)](http://blog.exrick.cn)\n[![](https://img.shields.io/badge/version-2.0-brightgreen.svg)](https://github.com/Exrick/xpay)\n[![GitHub stars](https://img.shields.io/github/stars/Exrick/xpay.svg?style=social\u0026label=Stars)](https://github.com/Exrick/xpay)\n[![GitHub forks](https://img.shields.io/github/forks/Exrick/xpay.svg?style=social\u0026label=Fork)](https://github.com/Exrick/xpay)\n\u003e 当前开源版本v2.0 [点我获取最新源码及文档v3.1](http://xpay.exrick.cn/pay)\n### [宣传视频](https://www.bilibili.com/video/av23121122/)\n- 作者亲自制作 [点我观看](https://www.bilibili.com/video/av23121122/)\n### 项目已部署，在线Demo\n- 本项目运行后效果：http://xpay.exrick.cn\n- 本项目Swagger接口文档：http://xpay.exrick.cn/swagger-ui.html\n- 实际综合应用商城项目：http://xmall.exrick.cn/\n\n### v3.1版本已发布！支付宝微信官方接口 自动回调！[立即获取源码和文档](http://xpay.exrick.cn/pay)\n- v3.1 新增微信支付官方接口 自动回调 提供个人申请教程(需一定开通成本)\n- v3.0 新增支付宝当面付 官方接口 自动回调 提供个人申请教程\n- v2.0 支付宝新增扫码点单收款，暂无风控，支持一键打开支付宝APP\n- v1.9 新增云闪付收款【**国外可用 收款直达银行卡**】，支付宝新增一键红包支付模式\n- v1.8 支付宝新增多种支付方式(含银行转账) v1.7 支付宝无法修改金额备注 新增支付宝扫码检测\n- v1.6 支付宝使用转账码方案 v1.5 解决近期支付宝史上最严风控问题 v1.3 实现轮询回调\n- 实现订单支付标识 解决无法识别支付人问题\n- ~~实现一键打开支付宝APP支付(支持安卓浏览器、IOS应用，不支持微信中打开)~~（支付宝已封禁）\n- 实现移动端支付方案 支持H5、APP、小程序\n- 轻松支持多账户收款 赶快使用手机扫码体验吧\n\n    ![](http://xpay.exrick.cn/assets/images/mobiletest.png)\n\n#### 注：v3.1源码（含详细文档）获取方式 \n- 进入 [XPay官网](http://xpay.exrick.cn/pay) 成功支付测试后 将自动发至你所填写的邮箱中\n\n### 声明\n\u003e 此系统只针对个人开发收款支付，实际可应用到实现~~自动维护捐赠表等业务，无法商用~~！最新版本可已实现充值、发卡、发货等业务，可勉强供真正个人商用！日入百万千万的请绕道！当然你还可将此项目当作入门级的SpringBoot练习项目\n\n### 个人申请支付接口现状\n- 原生支付宝，微信支付\n\n    - `支付宝微信只服务于有营业执照、个体工商户的商户。截止目前（2020-01-01）无法以个人身份（或以个人为主体）直接申请API。`\n\n    - 结论：不可行\n\n- 关联企业支付宝账号\n\n    - `即新建企业账户，然后采用已经实名认证了的企业账户关联该账户，用其实名主体完成新账户的实名认证。一系列操作完成后，新的账户具有和企业账户一样的资质可以申请API。`\n\n    - 结论：如果条件允许，推荐此方案\n\n- 聚合支付工具，Ping++等\n\n    - `就是个第四方聚合支付工具，简化了接入开发流程而已，个人开发者仍然需要去申请所需接口的使用权限。`\n\n    - 结论：不可行\n\n- 第四方聚合支付\n\n    - `支付资金进入官方账号，自己再进行提现操作。需要开通域名，提现手续费较高，支付页面不支持自定义。另外，对于此种类型的聚合支付平台，隐藏着极高的跑路风险。`\n\n    - 结论：不推荐\n- 有赞\n    - `通过有赞微商城支付接口收款。`\n    - 结论：不推荐，需手动提现，不免费，费用6800/年起，一旦风控资金很难取出。\n- 借助拼多多店铺、淘宝代付功能、微博红包、钉钉红包等第三方APP的支付功能\n    - 结论：不推荐，可能随时被风控。\n\n- 挂机监听软件，PaysApi、绿点支付等\n\n    - `本质上依然是采用挂机监听的策略，但针对的是移动端支付宝或微信的收款通知消息`\n    - 结论：成本高，配置麻烦，需24小时挂台安卓手机，不免费\n- 其他基于Xposed挂机监听软件\n    - `基于virtual xposed hook相关技术，可自动生成任意备注金额收款码 参考抢红包外挂`\n    - 结论：成本高，配置麻烦，需24小时挂台安卓手机，量大易触发风控、不免费，黑产适用\n- Payjs （疑使用[微信小微商户](https://pay.weixin.qq.com/index.php/core/affiliate/micro_intro)）\n    - 结论：仅支持微信、不免费、使用官方接口收取代开费用以及额外手续费\n- 国外支付，PayPal、Strip：不可用\n### XPay\n- `支持支付宝、微信、QQ钱包、翼支付、云闪付等任意收款码，资金直接到达本人账号，官方通道自动回调，免签通道个人移动端一键审核即时回调，不需提现，不需备案，完全免费，不干涉监听任何支付数据，个人收款0风险方案（前提正规业务小量金额）`\n- 结论：个人收款较少的支付业务推荐使用\n### 开发流程原理（以下为免签通道原理，官方通道7*24小时自动回调）\n\u003e 最新文档详见源码中的 `文档` 文件夹\n- 用户确认订单，需填写邮箱地址(用于邮件通知)、手机号(用于短信通知)等信息\n\n    ![QQ截图20171230234533.png](https://ooo.0o0.ooo/2018/07/21/5b52e0e68eb55.png)\n- 配置你的个人收款码，二维码图片配置在 `src\\main\\resources\\static\\assets\\qr` 文件夹中，已有 alipay（对应支付宝收款码）、wechat（微信）、qqpay（QQ钱包）文件夹存放相应收款码。可设置固定金额二维码（文件名为“收款金额.png”，例如“1.00.png”）或自定义金额二维码（文件名为“custom.png”），建议分辨率\u003e=180px比例1:1，推荐[二维码美化工具](http://www.wwei.cn/)，对应页面在 `src\\main\\resources\\templates` 中 `alipay.html、wechat.html、qqpay.html`。当然聪明的你还可以在 `pay.html` 和这些中自定义业务逻辑，修改JS代码即可。\n\n    ![QQ截图20171230234548.png](https://ooo.0o0.ooo/2018/07/21/5b52e1108ab66.png)\n- `application.properties` 配置文件中修改你的管理员邮箱等\n- 下载对应邮箱App，打开支付宝、微信收款语言通知等提醒，收到到款通知后，查看审核邮件，在邮件中根据备注号进行该交易任意人工审核确认操作完成回调，未到账的不用管，系统定时自动处理（默认01:00-08:00定时任务自动关闭系统）\n\n    ![drag1min.png](https://ooo.0o0.ooo/2018/07/21/5b52e14f9fc08.png) ![drag2min.png](https://ooo.0o0.ooo/2018/07/21/5b52e14fa3e61.png)\n### 疑问\n- 如何确定收款来自哪笔交易订单？\n    - 根据收款码中备注标号与审核邮件中的标识号匹配，详见文档\n- 半夜怎么办？\n    - 最新版系统已加定时任务默认01:00-08:00自动关闭系统（除官方接口7*24自动回调），审核邮件中也提供手动开关链接\n- 为什么不做自动监听挂机App？\n    - 迟早被封的为什么要做？...XPay主要面向真正个人如学生群体，也目前成本最低最稳定的方案，免费！\n    - 不想受限制、不想用APP监听、还想免费？请用我这套，哈哈![QQ截图20180721215515.png](https://ooo.0o0.ooo/2018/07/21/5b533b90bd23b.png)\n### 市面上一些自动监听回调方案\n- ~~爬支付宝官网~~\n- ~~监听微信网页版、PC版~~\n- 安卓APP监听通知栏\n- 高级安卓APP监听 使用xposed框架 可实现自动生成自定义备注任意金额收款码\n\n### 前端所用技术\n- [MUI](http://dev.dcloud.net.cn/mui/)：原生前端框架\n- [jQuery](http://jquery.com/)\n- [BootStrap](http://www.bootcss.com/)\n- [DataTables](http://www.datatables.club/)：jQuery表格插件\n### 后端所用技术\n- SpringBoot\n- [SpringMVC](https://github.com/Exrick/xmall/blob/master/study/SpringMVC.md)\n- Spring Data Jpa\n- MySQL\n- Spring Data Redis\n- [Druid](http://druid.io/)\n- Thymeleaf：模版引擎\n- [Swagger2](https://github.com/Exrick/xmall/blob/master/study/Swagger2.md)\n- [Maven](https://github.com/Exrick/xmall/blob/master/study/Maven.md)\n- 其它小实现：\n    - @Async 异步调用\n    - @Scheduled 定时任务\n    - JavaMailSender发送模版邮件\n- 第三方插件\n    - [hotjar](https://github.com/Exrick/xmall/blob/master/study/hotjar.md)：一体化分析和反馈\n- 其它开发工具\n    - [JRebel](https://github.com/Exrick/xmall/blob/master/study/JRebel.md)：开发热部署\n    - [阿里JAVA开发规约插件](https://github.com/alibaba/p3c)\n\n### 本地开发运行部署\n- 依赖：[Redis](https://github.com/Exrick/xmall/blob/master/study/Redis.md)(必须)\n- 新建`xpay`数据库，已开启ddl，运行项目后自动建表（仅一张表）\n- 在 `application.properties` 中修改你的配置，例如端口、数据库、Redis、邮箱配置等，其中有详细注释\n- 运行 `XpayApplication.java`\n- 访问默认端口8888：http://localhost:8888\n### Linux后台运行示例\n`nohup java -jar xpay-1.0-SNAPSHOT.jar -Xmx128m \u0026`\n### 作者其他项目推荐\n- [XMall：基于SOA架构的分布式电商购物商城](https://github.com/Exrick/xmall)\n\n    ![QQ截图20171022183906.jpg](https://ooo.0o0.ooo/2018/07/21/5b52e192366a0.jpg)\n\n- [X-Boot前后端分离开发平台](https://github.com/Exrick/x-boot)\n\n    ![](https://ooo.0o0.ooo/2020/03/13/rQGAWv1h8VMeIdi.png)\n\n- [XMall微信小程序APP前端 现已开源！](https://github.com/Exrick/xmall-weapp)\n    \n    [![WX20190924-234416@2x.png](https://s2.ax1x.com/2019/10/06/ucEsBD.md.png)](https://www.bilibili.com/video/av70226175)\n\n    \n### 技术疑问交流\n- QQ交流群 `475743731(付费)`，可获取各项目详细图文文档、疑问解答 [![](http://pub.idqqimg.com/wpa/images/group.png)](http://shang.qq.com/wpa/qunwpa?idkey=7b60cec12ba93ebed7568b0a63f22e6e034c0d1df33125ac43ed753342ec6ce7)\n- 免费交流群 `562962309` [![](http://pub.idqqimg.com/wpa/images/group.png)](http://shang.qq.com/wpa/qunwpa?idkey=52f6003e230b26addeed0ba6cf343fcf3ba5d97829d17f5b8fa5b151dba7e842)\n\n- 作者博客：[http://blog.exrick.cn](http://blog.exrick.cn)\n### [捐赠](http://xpay.exrick.cn)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexrick%2Fxpay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexrick%2Fxpay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexrick%2Fxpay/lists"}