GithubHelp home page GithubHelp logo

coinspay's Introduction

coinspay

适用于数字货币(BTC、USDT和其他任意数字货币)的付款方案,体验地址

安装步骤

git clone https://github.com/freepayment/coinspay.git //拷贝项目
cd coinspay //进入项目目录
npm install //安装项目依赖

npm run build //构建项目

运行项目

运行前需先生成自己的数字钱包,把生成的seed(非常重要,不能丢失)保存到自己的电脑

node generate.js

node app //后台长期运行,可以执行 nohup node app 2>&1 & 

浏览器访问:http://127.0.0.1:3000

快速集成项目

http://127.0.0.1:3000?order_id=订单索引&amount=订单金额 的方式,可以生成不同的数字货币收款地址和金额,其中订单索引必须为整数。

当收款地址确定收到款后,config/index.js里配置的callbackUrl将会收到回调,回调详细参数如下:

参数 解释
order_id 订单索引
amount 订单金额
name 数字货币名称
address 数字货币地址
rate 数字货币单价
request_balance 根据amount计算得到的数字货币数量,rate * request_balance = amount
receive_balance 该地址的数字货币数量,可以大于balance

coinspay's People

Contributors

freepayment avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.