subscription.rebill
subscription.rebill
subscription.rebill
Description
Manually execute rebill
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
item_id | int | yes | Item ID |
rebill_amount | float | yes | Rebill amount |
description | string | yes | Description |
Return
Name | Type | Description |
---|---|---|
result | array | Array with transaction 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' => 'subscription.rebill', 'data' => array('item_id' => 1, 'rebill_amount' => 25.35, 'description' => 'This is dinke testing manual rebill') ); $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);
Referenced Files
None
Subscribers
None
- Last Author
- • dinke
- Last Edited
- Apr 20 2015, 16:57