GithubHelp home page GithubHelp logo

merchant-server-demo-java's Introduction

商户对接 Demo

Quick Start

1. 此Demo基于 Java 8 开发,使用 maven 管理依赖包

打包命令

mvn clean install -Dmaven.test.skip=true

2. 启动应用

java -jar merchant-server-demo-1.1.0.jar

3. 使用前需要调用接口初始化 App 信息。以下是使用 curl 命令在本地初始化应用。参见AppController

curl http://127.0.0.1:25000/app/setup -X POST -H 'Content-Type: application/json' -d '
{
  "appId":"填写你的appId",
  "privateKey":"填写你的私钥",
  "biyongPublicKey":"填写BiYong为你的App提供的公钥",
  "apiUrl":"填写BiYong后台访问url",
  "serverUrl":"填写本服务的访问url"
}'

4. 启动后可直接访问测试页面。参见WebController

授权测试页面

http://127.0.0.1:25000/page/auth

支付测试页面

http://127.0.0.1:25000/page/pay

merchant-server-demo-java's People

Watchers

James Cloos 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.