Enable bet sharing on top of the hosted adapter, allowing users to share their bets with other Virtual Stadium users.
Because the hosted adapter has no knowledge of the bets placed on your platform, Bet Share is implemented as an adapter extension: you provide the tickets endpoint that retrieves the user's bets from your system.
To integrate bet sharing with Virtual Stadium:
Register your adapter with the global SIR function, ensuring only one adapter is registered per page load.
Implement the tickets endpoint.
Retrieve the user's tickets from your system, filtering by events or excluding previously shared tickets as needed.
The widgets will call the tickets endpoint when users interact with bet sharing features.
Backend: Implement the tickets endpoint handler as an extension of the hosted adapter.
For an implementation example with step-by-step guidance, see the Adapter Tickets Endpoint Example.
Frontend: Enable the Copy Bet Button widget
To allow users to interact with and copy bets in the UI, see the Copy Bet Button documentation.