The process of handling the bets and paying out the winnings can be performed in two ways:PayIn and PayOut methods involve separate requests for placing bets and processing the result (winning or losing outcome), while the PayInOut method consolidates these actions into one request.Using PayIn and PayOut#
1.
User places a bet in the game.
2.
Provider sends the PayIn request to the Aggregator to accept the bet. 3.
If the response is successful, then the game begins to draw the result to determine the amount of winnings.
4.
Provider sends the PayOut request to the Aggregator to pay out the winning amount (0 in case of loss). In case there is no confirming request, the bet will be considered as open and will be in the Acceptance status).
5.
If an error occurs during the bet draw, preventing the correct winnings from being determined, Provider sends the Refund request to the Aggregator. Using PayInOut#
1.
When a user places a bet, the potential winnings of the bet are first calculated.
2.
Provider sends the PayInOut request to the Aggregator indicating the bet and winning amounts (or 0 in case of loss). 3.
After receiving the draw result (TBC)
If for some reason an error occurred during the bet draw (the correct bet winnings failed to determine), then you need to send a Refund request.