/
5.1 giveMoney()
5.1 giveMoney()
Transfers credit from your agent to the player.
REST REQUEST
Array ( [api_password] => xapitest [api_login] => xapitest [method] => giveMoney //[user_id] => 123 //DEPRECATED [user_username] => domendomen2 [user_password] => 687ee8d988b2411bfc6983c4fca2f6c622819ac8 [amount] => 0 [transactionid] => 12345 [currency] => EUR )
REST RESPONSE
{"error":true,"message":"amount must be positive and numeric"} 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 giveMoney($ammount){ return $this->client->depositFunds($ammount); }
, multiple selections available,
Related content
5.2 takeMoney()
5.2 takeMoney()
More like this
2.1 createPlayer() *
2.1 createPlayer() *
More like this
Wallet integration guide
Wallet integration guide
More like this
Seamless integration
Seamless integration
More like this
Testing tool and Form
Testing tool and Form
Read with this
3. createPlayer()
3. createPlayer()
More like this