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
    

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

STEP 3: Interact mock server with cURL testing commands