Skip to content

Latest commit

 

History

History
84 lines (60 loc) · 2.38 KB

README.md

File metadata and controls

84 lines (60 loc) · 2.38 KB

Table of contents

Get Started

Refer to here for detailed introduction.

Deposit Wallet API

Refer to here for detailed API documentation.

Withdraw Wallet API

Refer to here for detailed API documentation.

Query API

Refer to here for detailed API documentation.

Mock Server

How to compile

  • ./mvnw spring-boot:run

Setup configuration

Set following configuration in config/application.properties

api.server.url=

Put wallet API code/secret into mock server

  • Get API code/secret on web console
    • API-CODE, API-SECRET, WALLET-ID
  • Put API code/secret to mock server's database
curl -X POST -H "Content-Type: application/json" -d '{"api_code":"API-CODE","api_secret":"API-SECRET"}' \
http://localhost:8889/v1/mock/wallets/{WALLET-ID}/apitoken

Register mock server callback URL

Operate on web admin console

Notification Callback URL

http://localhost:8889/v1/mock/wallets/callback

Withdrawal Authentication Callback URL

http://localhost:8889/v1/mock/wallets/withdrawal/callback

The withdrawal authentication callback URL once set, every withrawal request will callback this URL to get authentication to proceed withdrawal request.

Refer to withdrawalCallback() function in mock server MockController.java

cURL Testing Commands

Refer to here for curl testing commands.

Other Language Versions