All URIs are relative to https://api.digitalriver.com
Method | HTTP request | Description |
---|---|---|
retrieveCharges | GET /charges/{id} | Gets a charge by ID |
\DigitalRiver\ApiSdk\Model\Charge retrieveCharges($id)
Gets a charge by ID
Retrieves the details of a Charge by supplying its unique identifier.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = DigitalRiver\ApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new DigitalRiver\ApiSdk\Api\ChargesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 'id_example'; // string | Charge ID
try {
$result = $apiInstance->retrieveCharges($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChargesApi->retrieveCharges: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | Charge ID |
\DigitalRiver\ApiSdk\Model\Charge
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]