All URIs are relative to https://rest.paycomet.com
Method | HTTP request | Description |
---|---|---|
cancelPreauthorization | POST /v1/payments/{order}/preauth/cancel | Cancel previous preauthorization |
confirmPreauthorization | POST /v1/payments/{order}/preauth/confirm | Confirm previous preauthorization |
createPreauthoritation | POST /v1/payments/preauth | Create preauthorization |
createPreauthorizationRtoken | POST /v1/payments/preauthrtoken | Creates a preauthorization by reference |
\Swagger\Client\Model\InlineResponse20016 cancelPreauthorization($paycomet_api_token, $order, $body)
Cancel previous preauthorization
cancel_preauthorization
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\PreauthorizationsApi(
// 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()
);
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Preauthorization privilege required)
$order = "order_example"; // string |
$body = new \Swagger\Client\Model\PreauthCancelBody(); // \Swagger\Client\Model\PreauthCancelBody |
try {
$result = $apiInstance->cancelPreauthorization($paycomet_api_token, $order, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PreauthorizationsApi->cancelPreauthorization: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
paycomet_api_token | string | PAYCOMET API key (Preauthorization privilege required) | |
order | string | ||
body | \Swagger\Client\Model\PreauthCancelBody | [optional] |
\Swagger\Client\Model\InlineResponse20016
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\InlineResponse20017 confirmPreauthorization($paycomet_api_token, $order, $body)
Confirm previous preauthorization
confirm_preauthorization
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\PreauthorizationsApi(
// 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()
);
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Preauthorization privilege required)
$order = "order_example"; // string |
$body = new \Swagger\Client\Model\PreauthConfirmBody(); // \Swagger\Client\Model\PreauthConfirmBody |
try {
$result = $apiInstance->confirmPreauthorization($paycomet_api_token, $order, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PreauthorizationsApi->confirmPreauthorization: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
paycomet_api_token | string | PAYCOMET API key (Preauthorization privilege required) | |
order | string | ||
body | \Swagger\Client\Model\PreauthConfirmBody | [optional] |
\Swagger\Client\Model\InlineResponse20017
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\InlineResponse20012 createPreauthoritation($paycomet_api_token, $body)
Create preauthorization
create_preauthorization
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\PreauthorizationsApi(
// 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()
);
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Preauthorization privilege required)
$body = new \Swagger\Client\Model\PaymentsPreauthBody(); // \Swagger\Client\Model\PaymentsPreauthBody |
try {
$result = $apiInstance->createPreauthoritation($paycomet_api_token, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PreauthorizationsApi->createPreauthoritation: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
paycomet_api_token | string | PAYCOMET API key (Preauthorization privilege required) | |
body | \Swagger\Client\Model\PaymentsPreauthBody | [optional] |
\Swagger\Client\Model\InlineResponse20012
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\InlineResponse20018 createPreauthorizationRtoken($body, $paycomet_api_token)
Creates a preauthorization by reference
Creates a preauthorization with reference.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\PreauthorizationsApi(
// 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()
);
$body = new \Swagger\Client\Model\PaymentsPreauthrtokenBody(); // \Swagger\Client\Model\PaymentsPreauthrtokenBody |
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required)
try {
$result = $apiInstance->createPreauthorizationRtoken($body, $paycomet_api_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PreauthorizationsApi->createPreauthorizationRtoken: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Swagger\Client\Model\PaymentsPreauthrtokenBody | [optional] | |
paycomet_api_token | string | PAYCOMET API key (Authorization privilege required) | [optional] |
\Swagger\Client\Model\InlineResponse20018
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]