Setup Mock Server
Take steps to setup mock server and interact with the cURL testing commands.
STEP 1: Register the mock server callback URL on the web control panel
-
Deposit / Withdrawal Callback URL (REQUIRED)
http://localhost:8889/v1/mock/wallets/callback
-
Withdrawal Authentication Callback URL (OPTIONAL)
http://localhost:8889/v1/mock/wallets/withdrawal/callback
The withdrawal authentication callback URL once set, the CYBAVO SOFA system will callback this URL to get authentication to proceed withdrawal request.
STEP 2: Setup mock server configuration
- Put the CYBAVO SOFA REST API server URL in the mock server’s configuration file.
- Get the wallet API code/secret on the web control panel.
- Use the following API to put the wallet API code/secret into mock server’s database.
curl -X POST -d '{"api_code":"API_CODE","api_secret":"API_SECRET"}' \
http://localhost:8889/v1/mock/wallets/{WALLET_ID}/apitoken
Mock server will automatically query the corresponding wallet API code/secret from its database when processing the cURL testing commnads.
STEP 3: Interact mock server with cURL testing commands
- Refer to cURL testing commands.