Overview
Integrating with Upside.win is simple. Your game runs in an iframe on our platform, receives player authentication via JWT, and interacts with the Upside backend through our SDK for bet placement and payout processing. Key principle: Your backend handles game logic and state (cards, winners, outcomes), while Upside handles all WIN token transactions.Integration Flow
Game Loads in Iframe
Players launch your game, which loads inside an iframe on upside.win. Your game receives: - JWT token for the player - Player authentication context - Access to the Upside SDK
Backend: Place Bet
When a player starts playing, your backend calls
placeBet to lock in their wager.Backend: Handle Game Logic
Your backend: - Determines game outcome (coin lands on heads/tails) - Stores game state in your database - Calculates payout amount - Prepares outcome data (player choice, result, outcome)
Backend: Process Payout
When game ends, send the result to Upside to credit the player’s WIN balance.
HypeDuel