KNOWLEDGE API & GAME SESSIONS

Sandbox to Production: Testing a Casino Game Integration

Moving a casino game integration from sandbox to production requires more than a working launch URL. Use this checklist to validate provider credentials, game availability, wallet callbacks, idempotency, security, monitoring and rollback before live traffic.

How to use this guide

This is a reference integration model, not a specification for CASINO-AGG or any particular provider. Actual request formats, party responsibilities and settlement rules depend on the agreed API contract.

A working sandbox launch is only the beginning of acceptance

A casino game integration can look successful in a sandbox after one user opens one game and returns to the lobby. Production introduces conditions the demonstration may never have exercised: different credentials and network paths, a wider catalog, real operator restrictions, concurrency, unavailable providers, delayed wallet events and support teams who must resolve ambiguous outcomes. The readiness decision must address these boundaries together.

Treat the release as a collection of verifiable contracts rather than a visual smoke test. Each contract describes who owns the behavior, the required evidence and what happens when an expectation fails. Provider connection, catalog entitlement, game session, wallet transaction, data protection and operational monitoring need separate acceptance criteria. A pass in a test environment is evidence for those criteria, not a guarantee of identical live behavior.

Editorial boundary

This article gives a generic B2B integration checklist. It does not represent undocumented CASINO-AGG API methods, particular provider certifications, supported markets, licenses, environments or partnerships. Required tests and production approvals must be agreed with the actual operator, aggregator and game provider.

Create an explicit environment and configuration matrix

Sandbox, staging and production should have documented purposes. A sandbox may use simulated wallet balances and reduced game inventory; staging may exercise deployment configuration with synthetic identities; production handles actual authorized traffic. The exact topology differs by partner. Never assume that a sandbox token, callback URL, game ID or certificate will remain valid after a production switch.

Configuration itemSandbox acceptanceProduction gate
API origin and networkDocument test hosts, DNS, TLS and allowed routesVerify approved live hosts, certificates and firewall rules
Client identity and secretsIssue test-only credentials with limited scopeProvision separate production credentials through approved storage
Operator and brand mappingUse controlled test tenant identifiersVerify exact approved live tenant and brand
Game and provider identifiersCheck representative test mappingsValidate live catalog IDs and distribution contracts
Wallet and callback endpointsUse isolated balances, events and non-production destinationsVerify live callback receiver, authentication and ownership
Feature flags and limitsRecord simulated restrictions and test configurationConfirm live entitlements, throttles and launch settings
Monitoring and supportExercise alerts and test incident routesAssign real on-call owners, dashboards and escalation contacts

Write down versions, environment owners, endpoint inventory and secret rotation procedures. OWASP API9 highlights poor inventory of production, staging and test endpoints as a security risk. Environment separation protects real accounts and prevents a test script from connecting to a live wallet by accident. A production readiness review should require proof of configuration isolation rather than relying on a different color banner in the admin interface.

Validate catalog mappings and launch eligibility using representative games

A game catalog that imports without errors may still contain identifiers that fail to launch. A representative fixture should cover more than the most popular title: multiple provider namespaces, games with similar names, supported and unsupported devices, differing currencies, required languages, retired titles and temporarily unavailable products. Use verified source identifiers instead of guessing that an operator-facing slug is the provider launch ID.

Compare provider metadata, catalog availability and actual launch authorization. A game visible in the directory may be ineligible because of player state, market rules, commercial scope, product maintenance or unsupported client conditions. The expected denial must be tested just as carefully as a successful launch. Record which authority decides each restriction so an operator cannot accidentally override a provider-level control from its frontend.

  • Create fixtures for correct game-provider mappings, deleted or renamed identifiers and conflicting aliases.
  • Exercise eligibility for permitted and denied operator, brand, player and market combinations using synthetic test accounts.
  • Test provider catalog changes during a cached directory cycle and confirm a stale card never becomes unauthorized access.
  • Verify how client language, currency and device hints are passed and rejected when unsupported by the actual provider contract.

When staging and production use different game inventories, mark the gap explicitly. Do not declare an untested provider or unsupported product family certified merely because another game on the same integration opened successfully.

Test the complete game launch and session journey

The end-to-end path begins before the iframe or game window appears. Confirm the operator's player session, launch eligibility, server-issued launch context, recipient validation, actual provider session creation and the transition back to the operator lobby. Use both desktop and mobile browsers when these are contractually supported. Check navigation, blocked third-party storage, reloads, lost connectivity and the user's return after the provider session has expired.

01Select

The synthetic player selects a listed game under a defined operator and brand.

02Authorize

The server verifies current player, market, game and provider permissions.

03Issue and redeem

The launch credential reaches the intended recipient and is validated within its agreed lifetime.

04Run

The provider establishes a session and exchanges only authorized game and wallet events.

05Leave or expire

The player returns, disconnects or times out without corrupting the session state.

06Reconcile

Pending rounds and wallet transactions finish according to the financial contract.

A launch token expiring is not necessarily the same as the active game session ending. A browser tab closing is not proof that every game round has settled. Capture the distinct issuance, redemption, session and round identifiers in test evidence so each service can explain which state was reached.

Verify wallet callbacks, round identity and financial invariants

Game playback in sandbox cannot prove readiness if wallet accounting is untested. For each supported wallet model, validate the full authorized lifecycle: initial balance, accepted debit, win credit, zero-win round, balance inquiry and any contractually supported reversal or refund. Preserve exact transaction and round identifiers; distinguish event identity from game session identity. Expected behavior for insufficient funds, disabled players and expired sessions belongs in the acceptance matrix.

Verify amount precision, currency codes, ordering and concurrency under the real contract. Some integrations use a seamless wallet with operator-side balance decisions; others use transfers between accounting domains. Do not assume that every provider supports the same event sequence or callback schema. The test ledger should prove that a repeated valid event has no duplicate financial effect and a conflicting event with the same identity is rejected or investigated.

Wallet scenarioRequired assertionEvidence
Accepted debitBalance changes exactly onceTransaction ID, amount and ledger entry
Win creditCorrect account receives one creditRound ID and paired event identity
Insufficient fundsNo unauthorized debit or negative side effectSafe rejection and unchanged balance
Repeated callbackOriginal outcome returned or referencedDeduplication record and result
Out-of-order deliveryContract-defined state transition or durable holdEvent ordering and reconciliation trace
Timeout after committed writeNo blind second debit or creditStatus lookup or counterparty evidence
Rollback or refundSeparate authorized reversal, not deletion of historyReference to original transaction
Session closure with pending roundValid late events still resolve correctlyFinal ledger reconciliation

Use synthetic balances and no live personal payment data for test execution. If a production financial acceptance scenario is needed, arrange it with the authorized operator under controlled procedures; never assume permission to send a real-money debit just to complete a test checklist.

Inject failures and prove that recovery does not duplicate operations

A happy-path sandbox is unlikely to reveal race conditions, callback duplicates or uncertain provider outcomes. Use a simulator or partner-approved test controls to delay requests, drop acknowledgements, return transient errors, create temporary provider unavailability and deliver wallet events out of order. Distinguish a request that definitely failed before execution from one that may have committed before the response was lost.

Injected failureExpected behaviorRelease evidence
Provider connection timeoutBounded wait and safe retry decisionConfigured deadline and attempt count
Launch accepted but reply lostOriginal session outcome recovered, no duplicateStable request and session IDs
Callback delivered twice concurrentlyOne financial effectAtomic transaction identity decision
Revoked or wrong-scope credentialRejected without fallback authenticationRedacted denial and key scope
Game removed during launchRechecked eligibility and safe refusalCatalog and launch decision times
Provider unavailable after round beginsPending financial events retained for reconciliationRound state and incident reference
Malformed or unsigned callbackRejected with no ledger mutationAuthentication failure record
Sudden traffic increaseRate limits and capacity controls prevent cascadeLoad-test observations and alerts

Do not run destructive load tests or fault injection against a provider's live endpoints without explicit coordination. AWS and Google operational guidance emphasize bounded retries, capacity planning and rehearsed failure handling. The pass criterion should include a consistent business outcome and inspectable evidence, not only the absence of a browser error.

Review authentication, authorization, secrets and callback origins

A production deployment changes the attack surface. Test credentials must not be accepted in production; production secrets must not appear in client-side JavaScript, browser URLs, public repositories or test reports. Verify TLS peer identity, intended callback source, agreed message authentication, replay protection and access controls for every provider and operator. An authenticated service must still be checked for authorization to act on the exact game session or transaction.

OWASP API1 and API2 highlight object-level authorization and authentication failures. The ASVS provides an independently developed baseline for verifying application security controls. OWASP's Webhook Security guidance also covers signature validation, replay protection, secret rotation and safe downstream processing. These references support a review process, but the exact mechanism—HMAC, asymmetric signature, mutual TLS or other controls—must follow the actual integration specification.

  • Try valid credentials against the wrong operator, brand, player or game and confirm server-side denial.
  • Reject expired, revoked, malformed, replayed or untrusted callbacks without modifying financial records.
  • Check that allowlists, signature keys and callback URLs are scoped to the correct environment and can be rotated.
  • Verify logs and diagnostics redact launch tokens, secrets, personal data and sensitive wallet payloads.

Include credential ownership, emergency revocation and incident escalation in the go-live package. OWASP's Secrets Management guidance treats key generation, distribution, rotation and retirement as a lifecycle, not a one-time deployment variable.

Define service-level signals and support ownership before launch

A production integration needs evidence that players can enter games and financial events settle correctly. Monitor end-to-end launch success, latency, errors and saturation; Google SRE describes these as important service signals. Add product-specific measurements such as rejected launches by reason, duplicate callback suppression, unresolved session creation, age of pending transactions and reconciliation differences. A green web server dashboard is not a substitute for a correct ledger.

Use correlation IDs and stable operation references across operator, aggregator and provider boundaries wherever the contract allows. Track the time of issuance, redemption, session creation, financial callback and terminal settlement. Protect the trace from unauthorized access. The support team should be able to locate an incident without asking a user to paste a working launch URL or exposing a real account balance in public tickets.

SignalQuestion answeredOwner
Launch success and latencyCan allowed players actually start a game?Integration operations
Provider 5xx and timeoutsIs a dependency degraded?Provider liaison
Callback retries and duplicatesAre messages being delivered repeatedly?API and wallet team
Open sessions without acknowledgementDid launch work despite a missing response?Session service owner
Unreconciled financial eventsAre accepted rounds still awaiting final balance?Wallet and finance operations
On-call alert deliveryWill the correct person receive a useful incident?Release and support lead

Alert thresholds and dashboards must be calibrated to expected traffic and contractual service targets. Set up safe test alerts before go-live, and document escalation contacts and their coverage windows. An alert with no owner is not operational readiness.

Require an auditable release evidence pack, not a verbal pass

For each acceptance case, record the environment, build or configuration version, test data scope, exact expected result, observed result, responsible reviewer and unresolved exceptions. Store redacted request IDs and timestamps so a provider can correlate its own logs. Keep a difference list between sandbox coverage and features available only in production; an untested item should remain visibly untested rather than silently treated as a pass.

The reconciliation report should compare operator and counterparty transaction identities, amounts, currencies, event states and final balances according to the supported wallet model. A passing game launch does not compensate for an unresolved debit. Set release-blocking criteria around missing authorization checks, unexplained duplicate financial events, insecure secrets and inability to determine the outcome of an ambiguous write.

  1. Freeze the tested contract revision and record exact partner-approved environment identifiers.
  2. Link each scenario to reproducible steps, redacted evidence and the responsible reviewer.
  3. List open defects with severity, safe workaround if any and explicit decision ownership.
  4. Require authorization, wallet correctness and incident response owners to acknowledge their respective gates.
  5. Archive the approved evidence pack before opening production access beyond the agreed pilot scope.

Google's launch coordination guidance organizes readiness around architecture, capacity, security, monitoring, change control and external dependencies. A casino integration adds financial reconciliation and product entitlement checks, but the broader principle remains the same: launch decisions should be based on observable evidence with named ownership.

Promote configuration deliberately and roll out in controlled stages

Moving from sandbox to production should be a deliberate change of environment-specific configuration, not a blind copy of test values. Production credentials, callback endpoints, brand mappings, allowed provider hosts and monitoring routes must be provisioned through the approved release process. Confirm ownership and external approvals before sending live players to a new integration.

01Prepare

Confirm approvals, backups, tested version, credentials and escalation contacts.

02Smoke test

Use provider-approved safe production checks that do not create unauthorized financial effects.

03Pilot

Enable a narrowly bounded operator, market, game or traffic slice only if authorized.

04Observe

Compare launch errors, callback health, settlement and provider capacity with agreed thresholds.

05Expand or stop

Increase scope after evidence review or disable new launches on a failing route.

06Reconcile

Resolve sessions and financial events already accepted before closing the release.

Rollback requires special care. Turning off new launches or restoring an earlier configuration cannot erase or reverse wallet transactions already committed. If sessions are in flight, preserve their routing and settlement path until a documented handover or reconciliation is complete. Google SRE's production launch material discusses staged rollouts and change control; those controls must be adapted to the specific provider contract.

Make the go or no-go decision explicit and observe the first live days

A release gate should be a decision with named owners rather than an informal statement that the sandbox looked good. Verify contract version, environment isolation, provider entitlement, representative launches, negative tests, wallet invariants, security, monitoring, support escalation and safe rollback. Any critical unresolved financial or authorization defect should block wider live traffic until the responsible parties have agreed on a safe resolution.

Go-live gatePass criterionStop condition
EnvironmentLive endpoint and credentials independently verifiedTest secrets or wrong callback destination in production
Game catalogRepresentative games launch under correct entitlementsIncorrect game-provider mapping or unauthorized launch
WalletDebits, wins and reversals reconcile onceDuplicate or unexplained financial effect
Failure recoveryTimeouts and duplicates produce known, safe statesUnbounded retries or unknown live-money outcome
SecurityClient, operator and callback checks enforcedKey leak or cross-tenant authorization bypass
OperationsDashboards, alerts, on-call and partner escalation testedUnowned critical alert or missing settlement runbook
RolloutPilot scope, stop switch and in-flight settlement plan agreedNo safe way to halt new launches

After enabling a pilot, review both technical and business signals frequently during the agreed observation window. Watch for real device differences, new provider error patterns, increased callback delay and unresolved ledger differences. Record every exception against its environment and version; do not silently broaden launch scope merely because the first few games opened.

The definition of production readiness is not perfect immunity to failure. It is confidence, supported by tests and operational responsibility, that the correct games launch for authorized players, that every financial event can be accounted for, and that a degraded provider can be isolated without creating a second problem during recovery.

KNOWLEDGE

Sources & further reading

This guide draws on primary technical references and official guidance. Regulatory applicability depends on jurisdiction and implementation.

  1. Google SRE — Launch Coordination Checklist
  2. Google SRE — Reliable Product Launches at Scale
  3. Google SRE — Monitoring Distributed Systems
  4. OWASP — API1:2023 Broken Object Level Authorization
  5. OWASP — API2:2023 Broken Authentication
  6. OWASP — API9:2023 Improper Inventory Management
  7. OWASP — Application Security Verification Standard (ASVS)
  8. OWASP — Secrets Management Cheat Sheet
  9. OWASP — Webhook Security Cheat Sheet
  10. IETF — RFC 9110, HTTP Semantics
  11. AWS Well-Architected — Control and Limit Retry Calls