Coder Social home page Coder Social logo

onlinepay's Introduction

onLinePay

demo of on line pay

本文主要介绍onLinePay的示例TA和CA的使用,主要是CA中所支持的命令说明;
本示例中的CA实现了如下功能:
  1. 第一次握手请求的组包、加密

  2. 第二次握手数据包的解密、验证、解析

  3. 第三次握手请求的组包、加密、签名

  4. 支付请求数据包的组包、加密、签名

  5. 支付请求反馈数据包的解密、验证、解密

    上述指令主要是在REE侧执行onLinePay的相关指令来实现的,执行的命令和说明如下:

  6. 产生第一次握手请求的数据包: onLinePay hsone

  7. 解析第二次握手数据包: onLinePay hstwo

  8. 产生第三次握手请求的数据包: onLinePay hsthree

  9. 产生支付请求数据包: onLinePay payreq

  10. 解析支付请求反馈数据包: onLinePay payover

NOTE: 握手请求中的随机数都hardcode在代码中,读者可将对应的数据替换成生成随机数接口就可

onlinepay's People

Contributors

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