Getting started
Start here: 14 integration steps
Follow this order. You do not need the original game project.Fah Swe supplies licensed game content, application licensing and protected content delivery. Your merchant backend owns authenticated players, Diamonds, accepted bets, committed results, settlement, history, rankings, risk and realtime. Never send financial decisions to the documentation website.
The public kit contains guides, interface examples, database index specifications and offline contract fixtures. Licensed compiled merchant components are downloaded separately for your registered application and purchased games. Browser game files are delivered through protected launch; original Cocos projects are not included.
Use a dedicated staging database for integration tests. Do not seed player balances, wagers, results or receipts in a production database. Cat Stream is the working production reference; this guide contains no real client credentials or player records.
- 1
Create your Fah Swe client account. Expected: an ACTIVE client account in Client Portal. If it is suspended, contact the authorized account owner.
- 2
Register your merchant application in Client Portal → Applications. Expected: one application with its own APP_CHANNEL and APP_ID. Do not substitute the Android package name or another client’s identity.
- 3
Store APP_CHANNEL, APP_ID, KEY_ID and APP_KEY in your merchant server’s secret store. Store the content-signing private key only on that server. The Android app receives player-scoped tokens, never APP_KEY or signing keys.
- 4
Open My games. Check the individual game price, payment status and license deadline for the selected application. A successful portal login alone does not authorize game content.
- 5
Prepare Node.js, MongoDB replica-set transactions, TLS, backups and the reviewed database indexes. Run the read-only database doctor first; repair missing indexes through the approved setup command.
- 6
From Licensed components, choose your registered application and an entitled game. Verify package version, SHA-256 and manifest before installing the approved merchant runtime and host SDK. Keep the package outside web roots.
- 7
Connect your real Diamond wallet and ledger models through the documented host bindings. Validate safe integer amounts, conditional debit, unique receipts, atomic settlement, retries and recovery in staging.
- 8
Initialize configuration through the licensed setup API and merchant Admin. Keep new games in MAINTENANCE. Set chips, timezone, timer, payout policy, RTP and approved exposure limits. Do not insert round/result/ledger rows manually.
- 9
Implement Full and Half protected launch. Ask your merchant /launch endpoint for the current release; POST its certificate and grant to contentSessionUrl; apply every Set-Cookie header; inject bootstrapScript in the same game window before game code runs.
- 10
Connect Socket.IO namespace /fah-swe-v2 using auth.sessionToken from /init. Let the backend derive the merchant/game/user room. Reconnect by fetching an authoritative snapshot; do not replay received coin animations as bets.
- 11
Verify startup on the supported WebView. Expected: authenticated user, Diamond balance, current configuration, server time, deadlines and game-specific data. TeenPatti Plus must generate committed cards automatically on the merchant runtime.
- 12
In staging verify financial admission, idempotency and final settlement. In production reconcile only actual authorized player activity: accepted receipt → debit → committed result → payout/refund → wallet receipt → history.
- 13
Use merchant Admin to configure Target RTP, chips, betting time and Manual Loss Recovery. Changes to round-frozen values apply to the next round. Do not change source code or accepted odds to adjust RTP.
- 14
Complete the go-live checklist in Full and Half. Enable public ACTIVE only after launch, security, real settlement and device acceptance pass. Keep optional unapproved pool payouts disabled and disclosed.