HTML5 GAMES
Hello

Basic Info

Your account profile.

Username
--
Nickname
--
Email
--
User ID
--
Mobile
--
Status
--
Last login
--
Login IP
--
Login count
--
Language
--

Wallet

Balance and recharge. 1 SGD = 100 points.

0 pts

Full page
Play times
0
Total recharged
0
Total consumed
0
Account
--

Point Orders

Recharge records. 1 SGD = 100 points.

Game History

Games you have played.

Users

Super admin: browse all users.

Platforms

Manage domains, brand and logos for this station.

Gateway

Routes for current domain (Host). Same code once per env (dev/pre/prod).

Secret

Downstream Open API credentials for current domain.

Orders

Gateway pay-in orders for current domain.

Docs

Open API docs + online trial. Enter partner app_key / app_secret, then Run — Bearer is signed in-browser.

1 · Credentials
2 · Every request needs Bearer
  1. Header Authorization: Bearer <base64>
  2. Token plaintext: app_tag:timestamp:app_key:nonce:sign
  3. sign = SHA256(app_key + timestamp + nonce + app_secret) lowercase hex
  4. timestamp unix seconds; reject if skew > 5 minutes
POST /api/order/create — create order

flow: qr → qrcode_*; cashier → cashier_link.

Required

  • order_id — your unique id (= callback out_trade_no; ≠ response open_id)
  • gateway — route code, e.g. sunrate
  • env — dev | pre | prod (with gateway selects the route)
  • amount — > 0

Optional

  • flow, notify_url, currency, country (e.g. SGP)
  • paycode, account, first_name, last_name, user_open_id
  • success_url, email

Response data

  • open_id, env, amount, currency, status, status_text
  • account, holder_name, cashier_link
  • qrcode_string, qrcode_expired, qrcode_ttl
Response
—
3 · Callback (Secret webhook / notify_url) After pay success we POST a slim JSON envelope with the same Bearer scheme: type/gateway/env/app_key, data = open_id(platform id), out_trade_no(=your order_id), status, amount, amount_paid, currency, message, first_name, last_name (Sunrate may fill first_name from query nameTrunc). Reply HTTP 2xx or body containing SUCCESS. Retry up to 6 times (60/300/900/1800/3600s).

Loading...