All URIs are relative to https://checkout-api.reepay.com
Method | HTTP request | Description |
---|---|---|
createConfiguration | POST /v1/configuration | Create configuration |
deleteConfiguration | DELETE /v1/configuration/{handle} | Delete configuration |
getConfiguration | GET /v1/configuration/{handle} | Get configuration |
getConfigurations | GET /v1/configuration | Get configurations |
updateConfiguration | PUT /v1/configuration/{handle} | Update configuration |
\Swagger\Client\Model\Configuration createConfiguration($body)
Create configuration
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Swagger\Client\Api\ConfigurationApi(
// 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
);
$body = new \Swagger\Client\Model\CreateConfiguration(); // \Swagger\Client\Model\CreateConfiguration |
try {
$result = $apiInstance->createConfiguration($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConfigurationApi->createConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Swagger\Client\Model\CreateConfiguration | [optional] |
\Swagger\Client\Model\Configuration
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteConfiguration($handle)
Delete configuration
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Swagger\Client\Api\ConfigurationApi(
// 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
);
$handle = "handle_example"; // string | Configuration handle
try {
$apiInstance->deleteConfiguration($handle);
} catch (Exception $e) {
echo 'Exception when calling ConfigurationApi->deleteConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
handle | string | Configuration handle |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Configuration getConfiguration($handle)
Get configuration
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Swagger\Client\Api\ConfigurationApi(
// 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
);
$handle = "handle_example"; // string | Configuration handle
try {
$result = $apiInstance->getConfiguration($handle);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConfigurationApi->getConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
handle | string | Configuration handle |
\Swagger\Client\Model\Configuration
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Configuration[] getConfigurations()
Get configurations
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Swagger\Client\Api\ConfigurationApi(
// 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
);
try {
$result = $apiInstance->getConfigurations();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConfigurationApi->getConfigurations: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Swagger\Client\Model\Configuration[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Configuration updateConfiguration($handle, $body)
Update configuration
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Swagger\Client\Api\ConfigurationApi(
// 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
);
$handle = "handle_example"; // string | Configuration handle
$body = new \Swagger\Client\Model\UpdateConfiguration(); // \Swagger\Client\Model\UpdateConfiguration |
try {
$result = $apiInstance->updateConfiguration($handle, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConfigurationApi->updateConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
handle | string | Configuration handle | |
body | \Swagger\Client\Model\UpdateConfiguration | [optional] |
\Swagger\Client\Model\Configuration
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]