/
5.3 getPaymentTransactions()
5.3 getPaymentTransactions()
Retrieves payment transactions per given date range.
Returned array format can change without notice so please take this into account while processing.
public getPaymentTransactions( type $date_start , type $date_end [, type $status = NULL ] )
Parameters
Type | Parameter | Description |
---|---|---|
string | date_start | Date start in MySQL format (example: '2012-10-09 10:30:29') |
string | date_end | Date end in MySQL format (example: '2012-10-10 10:30:29') |
string | status | Filter by status - Leave empty or send any of the following statuses: 'PENDING','PROCESSED','FAILED','CANCELLED','ERROR','DENIED','IN PROGRESS' |
string | currency | players currency code |
Return Values
Type | Notice | Description |
---|---|---|
array | Array of Arrays in following format | array ( 0 => array( 'id' => '50', 'username' => 'test', 'agent' => 'test', 'skin' => 'test', 'player_id' => '41420', 'agent_id' => '642', 'amount' => '1.00', 'start_balance' => '0.00', 'end_balance' => '0.00', 'email' => '', 'date_request' => '2012-10-09 10:19:44', 'date_processed' => '2012-10-09 10:19:45', 'status' => 'PENDING', 'type' => 'deposit', 'instrument' => 'wpay', 'instrument_transid' => '0', 'instrument_type' => '', 'message' => '', 'error_message' => 'Payments_Wpay CREDIT CARD NOT FOUNDEDKOCREDIT CARD NOT FOUNDED', 'postback' => '',)) |
Tags
REST REQUEST
Array ( [api_password] => xapitest [api_login] => xapitest [method] => getPaymentTransactions [date_start] => 2012-10-09 10:30:29 [date_end] => 2012-10-10 10:30:29 [status] => PENDING [currency] => EUR )
REST RESPONSE
No results: {"error":0,"response":[]} Results: <br><pre><code class="brush: php, class-name: highlighted">Error: </code></pre> {"error":1,"message":"Date start can not be set in the future."}
Source Code
public function getPaymentTransactions($date_start,$date_end,$status = null){ return $this->client->getPaymentTransactions($date_start,$date_end,$status); }
, multiple selections available,
Related content
Wallet interface F.A.Q.
Wallet interface F.A.Q.
Read with this
5.1 getDailyBalances()
5.1 getDailyBalances()
More like this
Seamless integration
Seamless integration
Read with this
6.1 getDailyBalances()
6.1 getDailyBalances()
More like this
7) seamless player balance callback *
7) seamless player balance callback *
Read with this
5.3 getDailyReportMulti()
5.3 getDailyReportMulti()
More like this