Betting Entertainment Tools

Match Not Supported - Custom integration

Depending on your integration you can handle match not supported in two different way, either by hiding the widget or by showing a message in widget. Below you can find an example of how to handle match not supported by showing a message in widget.

Example


Example of callback call when match not found.

// getOffering callback
callback(
    {
        type: 1, // general error
        message: 'Match not found'
    },
    {
        matchName: 'FC Home vs FC Away', // Match name
        markets: [],
        marketCategories: []
    }
);
// calculate callback
callback(
    undefined,
    {
        cbMarkets: []
    }
);