{"repo":"HEUDavid/auto-receive-crypto-pay","free":true,"listed":false,"github":"https://github.com/HEUDavid/auto-receive-crypto-pay","clone":"git clone https://github.com/HEUDavid/auto-receive-crypto-pay.git","description":"Crypto currency payment service with direct peer-to-peer reception, automatic action execution upon receiving payments, and self-custody. 加密货币收款，点对点接收，实时监听到账，自托管。","language":"Go","stars":37,"topics":["btc","cryptocurrency","eth","payment","invoice","receipts","crypto-payment"],"license":"GPL-3.0","category":"blockchain-web3","readme_excerpt":"Auto Receive Crypto Pay 加密货币收款，点对点接收，实时监听到账，自托管。 中文 English 简介 通过流行的节点服务监听地址转账活动， 当 入账地址ToAddress 收到加密货币后， Node Services 回调 https://your domain/webhook 接口， 先对回调请求落库，然后检查并进行地址匹配，为 发送地址FromAddress 执行一些逻辑(譬如：生成发票收据、生成相关订阅token、发送虚拟商品卡密等)。 收款与查询页面：https://api.mdavid.cn/gin/pay 特点 - 完全地点对点收款，无传统的中间平台 - 无需KYC，无需用户注册 - 无中介(只是依赖节点服务商推送，自接入区块链要求较高，成本也比较高) - 无费用(除网络费用) - 开源，自托管，完全控制 - 支持多种网络，多种加密货币 - 实际上您只需自行选择节点服务商，配置回调地址即可 - 无钱包集成 - 在我看来，钱包授权行为可能会给用户资产带来风险，因此该项目是 push payment system 快速使用 搭配 nginx，注意 location /gin http://127.0.0.1:8080 与 配置文件中 hostRoot addr 保持一致 接口测试 也可以通过 Node Service Dashboard 发送测试消息来测试 配置文件 DB初始化 init.sql 从源码构建 假设您已经安装了 Go，那么可以打开命令行界面，执行如下命令： 二次开发 - 我想拓展一些能力 - 核心逻辑定义 fsm 状态机，增加对应节点及其状态处理器 - 我想嵌入到我的电子商务网站中 - 二次开发接入到您的订阅服务或者电子商务网站中，为网站支持接收加密货币付款渠道，简要流程参考： 1. 用户在您的网站注册，绑定用户的支付地址(类似于传统的收集用户的支付信息) 2. 展示管理员收款信息(收款地址、网络、币种)，拉起收款页 3. 用户自行发起转账动作 4. 转账成功， Auto Receive Crypto Pay 接到 Node Services 回调，为 支付地址FromAddress 执行逻辑(生成发票收据、生成相关订阅token、发送虚拟商品卡密等) - 如果有其他需求，欢迎提 issue 讨论 :) 可靠性说明 参看 go-fsm框架 说明 TODO - Step by Step 文档 联系我 admin@mdavid.cn","default_branch":null,"files":null,"tree":[],"storefront":"/r/HEUDavid","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/HEUDavid/auto-receive-crypto-pay/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}