cards.remove
cards.remove
cards.remove
Description
Remove credit card from payment
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
tracking_user | int | Yes | Client application user ID(s) |
ccdt_id | int | Yes | CC card id |
Returned
Array with these data in each array
Name | Type | Description |
---|---|---|
result | bool | status of requested action |
Notes
Record will be removed permanently after 18months
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' => 'cards.remove', 'data' => array( 'tracking_user' => '4151302', 'ccdt_id' => '1234' ) ); $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:
array (size=9) 'code' => int 700 'status' => string 'Action completed succesfully' (length=28) 'command' => string 'cards.remove' (length=12) 'result' => boolean true, 'request' => array (size=4) 'token' => string 'some-token' (length=10) 'password' => string 'some-pass' (length=32) 'command' => string 'cards.update' (length=12) 'data' => array (size=7) 'tracking_user' => string '4151302' (length=6) 'ccdt_id' => string '1234' (length=4) 'origin_ip' => boolean false 'debug' => null 'errors' => null
Referenced Files
None
Subscribers
None
- Last Author
- aplawecki
- Last Edited
- Sep 8 2022, 05:32