TrueMind
    November 20, 2026
    By Thea LaskermereUpdated November 20, 2026
    8 min read

    A Four Gate Framework for RGS Integration Testing Before Real Money Touches the Wallet

    Most remote game server integrations that fail in production passed every happy path test. A decision memo for operator teams: four testing gates, the wallet scenarios that actually break, a reconciliation formula as the exit criterion, and the options for building the test harness.

    Most remote game server integrations that break in production passed every test the operator ran. Spins worked, wins credited, balances updated on screen. What failed was the traffic nobody scripted: a debit that timed out and was retried, a win that arrived after the session expired, a rollback for a bet the wallet never recorded. Those are the cases that create real money discrepancies, angry players and awkward conversations with a regulator.

    This memo is written for operator product, payments and QA leads deciding how much testing a new RGS integration needs before it carries real money. It proposes four gates, each with a clear exit criterion, and argues that reconciliation, not functional testing, should be the final sign off. It also compares three ways to resource the work, because the cheapest option on paper is often the most expensive after launch.

    The decision and the terms behind it

    The decision: what must be true before a newly integrated game provider or aggregator goes live for real money players in each market, and who signs that off. Today, in many operators, the answer is informal. A QA engineer plays a few games on staging, someone checks the provider's certificate, and the games are switched on. That works until the first incident costs more than a proper test cycle would have.

    Four terms need to mean the same thing to everyone in the room.

    Remote game server (RGS): the provider side system that hosts game logic and the random number generator, decides outcomes and tells the operator's platform how much to debit and credit. The operator never calculates a spin result; it only moves money on instruction.

    Wallet integration: the contract between the RGS and the operator's wallet. In a single wallet model, every bet and win is a real time call to the operator's wallet. In a transfer wallet model, funds move into a provider side balance for the session and back at the end. Single wallet is now the norm for casino content and is where most of the testing effort belongs.

    Idempotency: the property that processing the same request twice has the same effect as processing it once. Every debit and credit carries a unique transaction ID, and the wallet must recognise a repeat and return the original result without moving money again.

    Rollback: a request from the RGS to reverse a previous debit, typically sent when the provider never received confirmation that the debit succeeded. Rollbacks are where integrations most often lose or create money.

    Four gates, each with an exit criterion

    The framework below splits testing into gates that run in sequence. A gate passes only when its exit criterion is met and its owner has signed it off. Skipping ahead is allowed only with a written exception.

    Gate What is tested Exit criterion Owner
    1. Contract API calls, field formats, currencies, error codes, authentication and session tokens against the provider's specification Every documented call and error code exercised at least once; no undocumented behaviour observed Platform engineering
    2. Money paths Bets, wins, rollbacks, retries, timeouts, duplicate requests, bonus rounds, jackpot contributions All scenarios in the failure catalogue pass; zero balance mismatches in 1,000 or more scripted rounds QA with payments
    3. Compliance fit Certified game versions per market, RTP configuration, session limits, reality checks where required, game restrictions by jurisdiction Every enabled game matches a certified version and approved RTP for each licence Compliance
    4. Live reconciliation A soft launch with a small group of real players or internal accounts on real money Discrepancy rate below threshold for 7 consecutive days Finance and payments

    Gate 1 is mostly automated and fast: a few days for a well documented provider. Gate 2 takes longest, typically one to two weeks, and is where most issues surface. Gate 3 is paperwork heavy but non negotiable in regulated markets; a game version that differs from the certified one, or an RTP setting that differs from the approved configuration, is a licence issue.

    Testing laboratories such as GLI, BMM and eCOGRA certify the games; the operator still has to prove the right version is the one live in each market. Gate 4 is the step most operators skip, and the one that catches issues no staging environment reproduces, such as provider side load behaviour and real network latency.

    The money paths that break, and the mistakes behind them

    The failure catalogue for gate 2 should be written before testing starts and owned by the payments team, not the provider. Providers test their own side well. They have less incentive to test how your wallet behaves when their requests arrive late, twice or out of order.

    The scenarios that matter most:

    • A debit times out at the RGS, which retries with the same transaction ID. The wallet must return the original result, not debit twice.
    • A debit times out, and instead of retrying the RGS sends a rollback. The wallet must reverse the debit if it was applied, and ignore the rollback cleanly if it was not, without creating money.
    • A win arrives after the player's session has expired or the player has logged out. The win must still be credited; refusing it creates a liability and a complaint.
    • A win arrives for a bet the wallet has no record of. This needs an agreed handling path and an alert, never a silent credit.
    • A free round or bonus feature ends with a win that is subject to wagering. The credit must land in the correct balance type.
    • A jackpot contribution is deducted per bet. The amounts must match the provider's report to the cent over a test period.
    • A player plays in one currency and the game reports in another. Rounding must be agreed and consistent.

    The mistakes that let these through are predictable:

    • Testing only through the game client, which never produces duplicate or delayed requests. You need a harness that sends raw API calls.
    • Treating any HTTP 200 response as success, when the body contains an error code.
    • Checking balances on screen instead of comparing wallet ledgers with provider round reports.
    • Letting the provider decide when testing is complete.
    • Running gate 2 on a staging wallet that does not share code with production.
    • Forgetting rollbacks for bets placed in a previous session or the previous day.

    Reconciliation as the sign off formula

    Functional tests show that each scenario can work. Reconciliation shows that, over thousands of rounds, nothing went missing. That is why it should be the exit criterion for both gate 2 and gate 4.

    For every round and every day, the wallet's view of money movement must match the provider's report:

    expected wallet delta = sum(credits) - sum(debits) + sum(rollbacks applied)
    discrepancy = | expected wallet delta - actual wallet ledger delta |
    discrepancy rate = rounds with any discrepancy / total rounds
    GGR check = sum(debits) - sum(credits) - sum(rollbacks applied), compared with the provider's GGR report per game
    

    A sensible threshold during gate 4 is zero unexplained discrepancies; explained ones, such as a known rounding rule, should be documented. In an illustrative soft launch, 40 internal and friendly accounts play 25,000 rounds across 120 games over 7 days. Total debits are €61,400, credits €58,200, and applied rollbacks €310.

    Expected wallet delta is €58,200 minus €61,400 plus €310, so minus €2,890. If the wallet ledger shows minus €2,890 and the provider reports GGR of €2,890 for the same period, the money paths reconcile. If the ledger shows minus €2,935, you have €45 of unexplained movement, and the go-live waits until the cause is found, whatever its size.

    The GGR comparison also works as a rough sanity check on game configuration. Over a small sample, realised RTP will wander far from the theoretical figure, so it cannot prove anything about a single game. But a provider level GGR report that differs from your own ledger calculation points to a reporting or mapping error that will cause trouble in monthly settlement.

    Options for resourcing the work, and the recommendation

    There are three realistic ways to staff this.

    Option A: rely on the provider or aggregator's own certification process and run manual smoke tests. Cost is lowest, maybe 3 to 5 days of QA time per integration. Risk is highest, because nobody tests your wallet's behaviour under retries and delays.

    Option B: build an internal test harness that replays the failure catalogue against any provider's API contract, plus automated daily reconciliation between wallet ledger and provider reports. Initial build might take 6 to 10 engineering weeks, after which each new integration costs a few days. It pays off once an operator integrates more than a handful of providers or runs more than one wallet stack.

    Option C: use a third party integration testing service or an aggregator that tests the wallet side as part of onboarding. Cost sits in between, but the reconciliation step still has to be owned internally, because only the operator sees its own ledger.

    The recommendation is option B for any operator planning more than 5 direct integrations in the next 2 years, and option C with internal reconciliation for smaller operators working mainly through one aggregator. Option A should be limited to adding new games from a provider whose integration has already passed all four gates.

    The next few years will probably move in one direction for RGS testing. Aggregators are packaging more of the contract and money path testing into self service tools, and regulators are asking operators more often to evidence exactly which certified game version is live in each market.

    Both trends push the same way: functional testing will increasingly come prepackaged, and the operator's distinctive responsibility will narrow to wallet behaviour and reconciliation. Teams that build that capability now will onboard new content faster and with fewer incidents than teams that keep treating go-live as a smoke test.