== overrides.update ==
==== Description ====
Update override data
==== Input Parameters ====
<table>
<tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
<tr><td>override</td><td>(int)</td><td>yes</td><td>Stored override ID</td></tr>
<tr><td>ppac_id</td><td>(int)</td><td>yes</td><td>Payment processor account ID</td></tr>
<tr><td>currency</td><td>(string)</td><td>yes</td><td>Currency abbr.</td></tr>
<tr><td>force_mid</td><td>(int)</td><td>no</td><td>Whether to force merchant id or not</td></tr>
</table>
==== Return ====
<table>
<tr><th>Name</th><th>Type</th><th>Description</th></tr>
<tr><td>result</td><td>array</td><td>Result array with data</td></tr>
</table>
==== Usage Example ====
```
<?php
require_once "curl_http_client/curl_http_client.php";
$curl = new \Dinke\Curl_HTTP_HttpClient();;
//setup payment url and timeout
$payment_url = 'https://dev-payment.datingvip.com/api.json';
$timeout = 30;
//generate post data
$post_data = array
(
'$curl->setCredentials('some-token' =>, 'some-token',
'password' => '130d04b80a4196857e47b254ebfbb53f',');
$post_data = array(
'comman'cmd' => 'overrides.update',
'data' => array('override'=>1, 'ppac_id' => 1, 'currency' => 'usd')
);
$response = $curl->send_post_dPostData($payment_url, $post_data, null, $timeout);
if($response === false)
{
//handle errors
}
//decode json to get array
$response = json_decode($response, true);
var_dump($response);
```
Excepted output after running this script should be:
```
array (size=91)
'result' =>
array (size=8)
'code' => int 700
'status' => string 'Action completed succesfully' (length=28)
'command' => string 'overrides.update' (length=16)
'result' => boolean true
'request' =>
array (size=4)
'token' => string 'some-token' (length=10)
'password' => string '130d04b80a4196857e47b254ebfbb53f' (length=32)
'comman 'cmd' => string 'overrides.update' (length=16)
'data' =>
array (size=3)
'override' => string '1' (length=1)
'ppac_id' => string '1' (length=1)
'currency' => string 'usd' (length=3)
'ts 'token' => int 1399661785string 'some-token' (length=26)
'origin_ip 'pass' => boolean falsestring 'some-pass' (length=32)
'debug 'ts' => nullint 1429558247
'origin_ip' => string '93.87.220.184' (length=13)
'errors' => null
```