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.
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.
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 item | Sandbox acceptance | Production gate |
|---|---|---|
| API origin and network | Document test hosts, DNS, TLS and allowed routes | Verify approved live hosts, certificates and firewall rules |
| Client identity and secrets | Issue test-only credentials with limited scope | Provision separate production credentials through approved storage |
| Operator and brand mapping | Use controlled test tenant identifiers | Verify exact approved live tenant and brand |
| Game and provider identifiers | Check representative test mappings | Validate live catalog IDs and distribution contracts |
| Wallet and callback endpoints | Use isolated balances, events and non-production destinations | Verify live callback receiver, authentication and ownership |
| Feature flags and limits | Record simulated restrictions and test configuration | Confirm live entitlements, throttles and launch settings |
| Monitoring and support | Exercise alerts and test incident routes | Assign 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.
The synthetic player selects a listed game under a defined operator and brand.
The server verifies current player, market, game and provider permissions.
The launch credential reaches the intended recipient and is validated within its agreed lifetime.
The provider establishes a session and exchanges only authorized game and wallet events.
The player returns, disconnects or times out without corrupting the session state.
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 scenario | Required assertion | Evidence |
|---|---|---|
| Accepted debit | Balance changes exactly once | Transaction ID, amount and ledger entry |
| Win credit | Correct account receives one credit | Round ID and paired event identity |
| Insufficient funds | No unauthorized debit or negative side effect | Safe rejection and unchanged balance |
| Repeated callback | Original outcome returned or referenced | Deduplication record and result |
| Out-of-order delivery | Contract-defined state transition or durable hold | Event ordering and reconciliation trace |
| Timeout after committed write | No blind second debit or credit | Status lookup or counterparty evidence |
| Rollback or refund | Separate authorized reversal, not deletion of history | Reference to original transaction |
| Session closure with pending round | Valid late events still resolve correctly | Final 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 failure | Expected behavior | Release evidence |
|---|---|---|
| Provider connection timeout | Bounded wait and safe retry decision | Configured deadline and attempt count |
| Launch accepted but reply lost | Original session outcome recovered, no duplicate | Stable request and session IDs |
| Callback delivered twice concurrently | One financial effect | Atomic transaction identity decision |
| Revoked or wrong-scope credential | Rejected without fallback authentication | Redacted denial and key scope |
| Game removed during launch | Rechecked eligibility and safe refusal | Catalog and launch decision times |
| Provider unavailable after round begins | Pending financial events retained for reconciliation | Round state and incident reference |
| Malformed or unsigned callback | Rejected with no ledger mutation | Authentication failure record |
| Sudden traffic increase | Rate limits and capacity controls prevent cascade | Load-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.
| Signal | Question answered | Owner |
|---|---|---|
| Launch success and latency | Can allowed players actually start a game? | Integration operations |
| Provider 5xx and timeouts | Is a dependency degraded? | Provider liaison |
| Callback retries and duplicates | Are messages being delivered repeatedly? | API and wallet team |
| Open sessions without acknowledgement | Did launch work despite a missing response? | Session service owner |
| Unreconciled financial events | Are accepted rounds still awaiting final balance? | Wallet and finance operations |
| On-call alert delivery | Will 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.
- Freeze the tested contract revision and record exact partner-approved environment identifiers.
- Link each scenario to reproducible steps, redacted evidence and the responsible reviewer.
- List open defects with severity, safe workaround if any and explicit decision ownership.
- Require authorization, wallet correctness and incident response owners to acknowledge their respective gates.
- 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.
Confirm approvals, backups, tested version, credentials and escalation contacts.
Use provider-approved safe production checks that do not create unauthorized financial effects.
Enable a narrowly bounded operator, market, game or traffic slice only if authorized.
Compare launch errors, callback health, settlement and provider capacity with agreed thresholds.
Increase scope after evidence review or disable new launches on a failing route.
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 gate | Pass criterion | Stop condition |
|---|---|---|
| Environment | Live endpoint and credentials independently verified | Test secrets or wrong callback destination in production |
| Game catalog | Representative games launch under correct entitlements | Incorrect game-provider mapping or unauthorized launch |
| Wallet | Debits, wins and reversals reconcile once | Duplicate or unexplained financial effect |
| Failure recovery | Timeouts and duplicates produce known, safe states | Unbounded retries or unknown live-money outcome |
| Security | Client, operator and callback checks enforced | Key leak or cross-tenant authorization bypass |
| Operations | Dashboards, alerts, on-call and partner escalation tested | Unowned critical alert or missing settlement runbook |
| Rollout | Pilot scope, stop switch and in-flight settlement plan agreed | No 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.
- Google SRE — Launch Coordination Checklist
- Google SRE — Reliable Product Launches at Scale
- Google SRE — Monitoring Distributed Systems
- OWASP — API1:2023 Broken Object Level Authorization
- OWASP — API2:2023 Broken Authentication
- OWASP — API9:2023 Improper Inventory Management
- OWASP — Application Security Verification Standard (ASVS)
- OWASP — Secrets Management Cheat Sheet
- OWASP — Webhook Security Cheat Sheet
- IETF — RFC 9110, HTTP Semantics
- AWS Well-Architected — Control and Limit Retry Calls