ABXplay Free Bets

Billing functionality update.

In order for gift spins to become available in ABXplay games, it's necessary to make a number of changes to your billing. The game server in the billing response expects the additional structure of the following type:

"freeSpinsLeft":{
    "ib_kc":{ // game source
        "count":20, // how many gift slots left
        "initialCount":20, // gift slots general amount
        "bet":700,  // bet value for line (in cents)
        "line":10 // line amount
     }
}

//the example of billing response with the additional structure
response: {“status”:“OK”,“balance”:10000,“currency”:"USD",“freeSpinsLeft”:{“ib_kc”:{“count”:30,“initialCount”:30,“bet”:100,“line”:10}}}

If the game is played on gift spins, then in the billing requests from the game server appears the additional structure of the following type:

"free":{"ib_kc:9:100":  -1}

This structure suggests that the game server involves the cancellation of gift spins from this data, other request parameters are the same as the usual spin has.

//The example of the game server billing request
{"trx_id":"trx2_46083502","tag":{"lines":10,"game_uuid":"3377550018","game_id":"ib_kc","game":"slot","denomination":100,"bet":1},"sign":"dffd77a1877f9018e5bb15337acf1581","session":"cf1aa3f0-6a7f-4360-a0d5-e3203dcbf0ea","retry":0,"plus":0,"minus":1000,"method":"do","free":{"ib_kc:9:100":-1}}

//The example of billing response
{"status":"OK","balance":10000,"currency":"USD","freeSpinsLeft":{"ib_kc":{"count":29,"initialCount":30,"bet":100,"line":10}}}

In this case, the withdrawal should be made not from the game balance, but from the number of gift spins.count = count - 1;

When gift spins end count = 0. Structure free from the server will be the following:

"free":{}

Additional information

Restrictions

Games where adding of gift spins is possible

IDSourceGamePermitted linesPermitted bets