arrow_backBack to product
Guides3 guides

Get up and running fast

Everything you need to know — all in one place.

Integrate FireFly in Under an Hour

Full walkthrough from NuGet install to your first live game round using the C# integration.

1

Install the NuGet package

Add `Fireball.FireFly` from NuGet to your .NET project. The package targets .NET 6+ and includes async/await support, built-in resilience policies, and structured logging via Microsoft.Extensions.Logging.

2

Configure the client

Register FireFly in your DI container with your operator credentials from FireStation. FireFly reads configuration from `appsettings.json` or environment variables — no custom plumbing needed.

3

Implement the game launch flow

Call `firefly.Games.GetLaunchUrl(gameId, playerId, currency)` to generate a signed launch URL. Pass it to your frontend to open the game in an iframe or redirect.

4

Handle callbacks

Register your callback URL in FireStation. FireFly validates incoming callback signatures automatically. Implement `OnBet`, `OnWin`, and `OnRefund` handlers in your controller — each receives a strongly-typed model.

Managing Multi-Tenant Access

Configure FireFly for multi-brand or white-label environments with isolated player namespaces.

1

Understand tenant isolation

FireFly supports multiple operator brands under a single account. Each brand gets its own credential set, player namespace, and callback URL — fully isolated with no data bleed between brands.

2

Register additional brands

In FireStation, go to Integrations → Brands → New Brand. Set a unique identifier and configure per-brand limits, currency, and allowed game catalog.

3

Configure routing in FireFly

Use `IFireFlyClientFactory` to resolve the correct tenant client at runtime based on your request context — typically derived from the subdomain, JWT claim, or session data.

4

Monitor per-brand metrics

FireStation shows round counts, GGR, and error rates broken down by brand. Set per-brand alert thresholds for anomaly detection.

Going Live Checklist

Everything to verify before flipping the switch from sandbox to production.

1

Switch to production credentials

Replace your sandbox API key and endpoint with the production equivalents from FireStation. Double-check that no sandbox URLs remain hardcoded in configuration files or environment variables.

2

Validate callback security

Confirm your callback handler validates the HMAC signature on every request. Run the Fireball signature validation test from FireStation against your live endpoint before going public.

3

Load test your endpoints

Use the Fireball load test tool (available in FireStation under Integrations → Tools) to simulate peak round volume against your production environment and confirm latency is within SLA.

4

Enable monitoring

Set up alerts in FireStation for error rate spikes, settlement failures, and latency outliers. Configure a runbook for your on-call team with the Fireball status page URL and support contact.