Giter Club home page Giter Club logo

passtopay's Introduction

PassTo Pay

license GPLV3 version 1.0.0

PassTo Pay - 聚合支付助你快速拓展業務

PassTo Pay是一個聚合支付第三方平臺,為經營各類業務的商戶提供支付寶、微信、雲閃付直接收款,二維碼掃碼收款,接納各種銀行卡、信用卡,幫助商戶快速處理人民幣收付流程

適用場景

  • 在綫金融收付款,接受付款、發送付款,最終實現財務流程提供便捷、亞太、安全和實時的支付解決方案
  • 跨境電商收付款,獨立站收款結算,十五分鐘付款時長穩定高效實時掌控您的業務
  • 綫上游戲收付款,支持小額多筆同時收款,實時收款狀態快速輕鬆地向遠程異地收款

我要體驗一筆收銀檯訂單

嘗試支付 ¥0.01 體驗 PASSTO PAY 支付寶代收流程

我要體驗商戶後臺

使用商戶試用賬戶,查看商戶後臺功能

開源免費收銀檯

  • 支持私有化部署的開源免費收銀檯源代碼
  • 完美支持 PassTo Pay 的商戶對接流程
  • 提供完整的支付寶收銀檯前端樣式代碼
  • 遵守 GPLv3 開源協議

frontend端 收銀檯項目結構

frontend
├── api                  # API 控制器目录
│   ├── [**.ts]
│   ├── types.ts
├── components           # 組件庫
│   ├── btn                 # 按鈕
│   ├── countdown           # 倒計時
│   ├── modal               # 彈窗
│   ├── pay              # 数据库相关目录
│   │   ├── loading.tsx     # loading組件
│   │   ├── order.tsx       # 訂單詳情
│   │   ├── pay.tsx         # 下單支付頁
│   ├── qrcode           # 二維碼組件
├── hooks                # 单元测试目录
│   ├── useCopy.ts       # 複製方法
│   └── useIsMobile.ts   # 移動端判斷
├── layout                # 单元测试目录
│   ├── basicLayout.tsx   # 公共模板
├── pages                # 頁面
├── public               # 資源目錄
│   ├── images           # 圖片
│   └── locales          # 語言包
│   └── scss             # 通用樣式
├── utils                # 方法類
│   ├── calculation.ts   # 計算類方法
│   └── common.ts        # 常用方法
│   └── request.ts       # 請求方法
│   └── toast.tsx        # toast
├── .env                 # 环境变量配置文件
│   ├── NEXT_PUBLIC_apiURL  #  為收銀台API地址
├── .gitignore

開發調試

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

使用說明

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

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

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

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

部署教程:

  • 開發:
yarn
yarn dev

用瀏覽器開啟 http://localhost:3000 查看結果。

  • 打包: yarn build

server端 收銀檯項目結構

server
├── bean                 # 异常和请求的Bean
│   ├── [**.ts]
│   ├── types.ts
├── config               # 请求api的配置参数
│   
├── ctrl                 # 下单等相关接口
│   ├── PayNotifyCtrl    # 回调接口列子
│   └── UnifiedOrderCtrl # 下单接口
├── dto                  # 请求相应封装的DTO
│   
├── utils                # 相关工具类
│  
├──CashierServer         # 启动类

├── application.yml      # 配置文件,配置商户号等

開發調試

  • 安裝JDK:JDK1.8
  • 安裝maven
  • run CashierServer.java 类中的main方法

用瀏覽器開啟 http://localhost:8080/doc.html 查看結果。

部署:

  • 打包: 使用maven 完成打包
  • target目录下:
    • cashier-server.jar
  • 启动服务: java -jar cashier-server.jar

加入交流/意見反饋

商戶 API 接口

更多接口詳情訪問:https://passtopay.io

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

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

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

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

passtopay's People

Contributors

luffy-chixi88 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.