All URIs are relative to https://rest.paycomet.com
Method | HTTP request | Description |
---|---|---|
executePurchase | POST /v1/payments | Executes a payment |
executePurchaseRtoken | POST /v1/payments/rtoken | Executes a payment by refence |
operationInfo | POST /v1/payments/{order}/info | Get info of a order |
operationSearch | POST /v1/payments/search | Search orders |
\Swagger\Client\Model\InlineResponse20012 executePurchase($body, $paycomet_api_token)
Executes a payment
Generate a purchase. It will confirms a charge or send a challenge URL to the commerce.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\PaymentsApi(
// 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\V1PaymentsBody(); // \Swagger\Client\Model\V1PaymentsBody |
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required)
try {
$result = $apiInstance->executePurchase($body, $paycomet_api_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentsApi->executePurchase: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Swagger\Client\Model\V1PaymentsBody | [optional] | |
paycomet_api_token | string | PAYCOMET API key (Authorization privilege required) | [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 executePurchaseRtoken($body, $paycomet_api_token)
Executes a payment by refence
Generate a purchase with reference. It will confirms a charge or send a challenge URL to the commerce.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\PaymentsApi(
// 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\PaymentsRtokenBody(); // \Swagger\Client\Model\PaymentsRtokenBody |
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required)
try {
$result = $apiInstance->executePurchaseRtoken($body, $paycomet_api_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentsApi->executePurchaseRtoken: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Swagger\Client\Model\PaymentsRtokenBody | [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]
\Swagger\Client\Model\InlineResponse20014 operationInfo($paycomet_api_token, $order, $body)
Get info of a order
operation_info
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\PaymentsApi(
// 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 (Query privilege required)
$order = "order_example"; // string |
$body = new \Swagger\Client\Model\OrderInfoBody(); // \Swagger\Client\Model\OrderInfoBody |
try {
$result = $apiInstance->operationInfo($paycomet_api_token, $order, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentsApi->operationInfo: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
paycomet_api_token | string | PAYCOMET API key (Query privilege required) | |
order | string | ||
body | \Swagger\Client\Model\OrderInfoBody | [optional] |
\Swagger\Client\Model\InlineResponse20014
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\InlineResponse20015 operationSearch($paycomet_api_token, $body)
Search orders
operation_search
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\PaymentsApi(
// 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 (Query privilege required)
$body = new \Swagger\Client\Model\PaymentsSearchBody(); // \Swagger\Client\Model\PaymentsSearchBody |
try {
$result = $apiInstance->operationSearch($paycomet_api_token, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentsApi->operationSearch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
paycomet_api_token | string | PAYCOMET API key (Query privilege required) | |
body | \Swagger\Client\Model\PaymentsSearchBody | [optional] |
\Swagger\Client\Model\InlineResponse20015
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]