This document is a guide to getting started with Basic Wallet Integration of Tom Horn Gaming Integration Casino.
The full documentation is available here.
The basic integration consists of these parts:
- Integration service
- Embedding client into your page
Integration Service
Integrator needs to call few commands before opening the game:
- GetGameLaunchToken - This operation creates a player in the system, opens a new session for the player and return a security token required to launch the game. If the player already exist in the system, the operation will only open the session and return a security token.
- GetGameModules - This operation retrieves a list of all game modules available to the Customer. This operation is usually used when preparing the list of games for the game lobby.
- GetBalance – return the current balance of the player
- Deposit - A deposit is a transfer of a specified amount of money to a player’s account.
- Withdrawal - A withdrawal is the transfer of a specified amount from a player’s account.
For detailed specification of Integration service click here.
PHP Example:
function GetSign($key, $message) { return strtoupper(hash_hmac('sha256', pack('A*', $message), pack('A*', $key))); }
function pGetIdentity($name) {
//returns information about identity specified in $name
//preparing API call parameters and signature
$signData = implode('', array(PARTNERID, $name));
$sign = GetSign(KEY, $signData);
$params = array('partnerID'=>PARTNERID, 'sign'=>$sign, 'name'=>$name);
//api call
$response = $gClient->GetIdentity($params);
//get data from the API call
$mData = $response->GetIdentityResult;
$mCode = $mData->Code;
$mMessage = $mData->Message;
$mName = $mData->Identity->Name;
$mState = $mData->Identity->State;
}
Embedding the Game Client
Game launch URL automatically renders the game client.
Comments
0 comments
Please sign in to leave a comment.