Giter Site home page Giter Site logo

blockatmonline / scanpay Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 2.0 279 KB

✅一款開源免費的,為商戶提供包括`USDT-TRC20`、`USDT-ERC20`等各類加密貨幣`代收代付`功能的支付解決方案。 ✅An open source and free payment solution that provides merchants with various cryptocurrency collection and payment functions such as USDT-TRC20 and USDT-ERC20!

JavaScript 19.79% HTML 1.34% Vue 72.44% SCSS 6.43%
payment crypto fireblocks ledger-vault metamask pay qr scan

scanpay's Introduction

ScanPay

license GPLV3 version 1.0.0

繁體中文 | English

ScanPay - 區塊鏈支付解決方案

一款開源免費的,為商戶提供加密貨幣代收代付功能的支付解決方案,支持自定義收款錢包地址以及收款通知,支持代付API對接。可以收取USDT-TRC20USDT-ERC20等各類幣種。

AD -- PassTo-多種資產抵押信用卡

無上限信用額 單筆消費可達$5,000,000
信用額度按照抵押品價格而設定,支持:證券、物業、貴金屬、數字資產等
可绑微信、支付宝、美区AppStore消费
點擊領取你的國際信用卡

AD -- BlockATM-智能合約收付款解決方案

完全去中心化的商戶收付款方式
使用智能合約進行資金的安全管理
使用費率比fireBlocks和metaMask都低
點擊創建你的智能合約櫃檯

項目簡介

  • ScanPay是一个支持私有化部署的區塊鏈支付解决方案
  • 本項目不依賴任何外部資源,無需另外部署數據庫,采用輕量化的配置存儲
  • 任意項目都可以對接,輕鬆實現收取USDT-TRC20USDT-ERC20等各類幣種
  • ScanPay 遵守 GPLv3 開源協議

項目結構

src
  ├── api ---> (接口配置)
  ├── asset ---> (公共項目, 公共圖像等)
  ├── config ---> (可選的貨幣和鏈配置)
  ├── utils ---> (通用代碼)
  └── views ---> (頁面文件)

開發調試

  • 安裝依賴包:yarn
  • 本地調試:yarn serve
  • 打包編譯:yarn build

使用說明

  • 模擬生成訂單頁: http://localhost:8000/generateOrder

    輸入參數來生成訂單,得到一個url地址,比如 http://localhost:8000?oid=XXXXXXXXXXXXXXX

  • 收銀台頁: http://localhost:8000?oid=XXXXXXXXXXXXXXX

    • 展示訂單信息及二維碼收款地址
    • 頁面會根據支付結果展示不同的訂單狀態

部署教程:

加入交流/意見反饋

設計實現

ScanPay實現方式是透過TronGrid、Infrua等提供的API,監聽錢包地址的交易事件,將鏈上交易數據與資料庫中的訂單數據進行對比,若匹配成功,則創建支付訂單。

简单的原理:
1.從業務場景跳轉至ScanPay收銀台頁面。
2.收銀台展示給客戶分配的收款地址。
3.伺服器訂閱監聽地址入帳交易數據,並與資料庫中的地址進行匹配生成訂單。
4.等待鏈上交易完成確認,將訂單標記為完成。
5.訂單完成後,異步通知任務將訂單完成事件回調給業務場景。

scanpay's People

Contributors

blockatmonline avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.