/
5.2 takeMoney()
5.2 takeMoney()
Transfers credit from the player to your agent.
REST REQUEST
Array ( [api_password] => xapitest [api_login] => xapitest [method] => takeMoney //[user_id] => 123 //DEPRECATED [user_username] => domendomen2 [user_password] => 687ee8d988b2411bfc6983c4fca2f6c622819ac8 [amount] => 0.25 [transactionid] => 12345 [currency] => EUR )
NOTICE: Rest request can take amount
parameter 'all', to withdraw all balance from player.
REST RESPONSE
{"error":false,"message":true} Other possible responses (text format): 0,3.21 1,Transaction already processed! (PROCESSED) 1,Transaction already processed! (CANCELED) 1,Transaction is still being processed! (RESERVED) *PROCESSED means it was successfull *CANCELED means it failed and you dont have to try again *RESERVED means the operation is not completed and you must try again to see the result Transaction id must be unique! or you will recieve the following response: {"error":1,"message":"Transaction already processed! (PROCESSED)"}
User must be logged in first!
Amount must be in decimal format, with '.' separator for decimals, example: 1.01
Source Code
public function takeMoney($ammount){ return $this->client->withdrawFunds($ammount); }
, multiple selections available,
Related content
Wallet integration guide
Wallet integration guide
Read with this
3. createPlayer()
3. createPlayer()
More like this
Seamless integration
Seamless integration
Read with this
4.1) logoutPlayer()
4.1) logoutPlayer()
More like this
5.1 giveMoney()
5.1 giveMoney()
Read with this
4) loginPlayer()
4) loginPlayer()
More like this