merchant.check-limits
merchant.check-limits
merchant.check-limits
Description
Retrieve info about MID cap limits status
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
merchant_id | int | yes | Merchant ID |
merchant_account | int | yes | Merchant account |
currency | string | yes | currency |
Return
Name | Type | Description |
---|---|---|
result | array | Result array with data |
Usage Example
<?php $curl = new \Dinke\CurlHttpClient; //setup payment url and timeout $payment_url = 'https://dev-payment.datingvip.com/api.json'; $timeout = 30; $curl->setCredentials('some-token', 'some-pass'); $post_data = array( 'cmd' => 'merchant.check-limits', 'data' => array('merchant_id' => '1358984622', 'merchant_account' => 5, 'currency' => 'USD') ); $response = $curl->sendPostData($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:
'result' => [ 'code' => 700, 'status' => 'Action completed successfully', 'command' => 'merchant.check-limits', 'request' => [ 'cmd' => 'merchant.check-limits', 'token' => 'dating-frontend-a1@testing', 'pass' => '449c914889e03f9ea2ae1098186d3901', 'data' => [ 'merchant_id' => '1358984622', 'merchant_account' => '5', 'currency' => 'USD', ], ], 'errors' => null, 'result' => [ 'mcg_id' => 1, 'merchant' => 'test-mid', 'currency' => 'USD', 'cap_amount' => '50000.00', 'current_period_amount' => '0.00', 'is_rebill_disabled' => 0, 'is_signup_disabled' => 0, 'related_ppac_ids' => [1, 2, 74], ], 'origin_ip' => '127.0.0.1', ],
Referenced Files
None
Subscribers
None
- Last Author
- aplawecki
- Last Edited
- Wed, Sep 10, 04:40