All URIs are relative to https://rest.paycomet.com
Method | HTTP request | Description |
---|---|---|
executeRefund | POST /v1/payments/{order}/refund | Perform a refund |
\Swagger\Client\Model\InlineResponse20013 executeRefund($paycomet_api_token, $order, $body)
Perform a refund
execute_refund
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\RefundApi(
// 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 (Refund privilege required)
$order = "order_example"; // string |
$body = new \Swagger\Client\Model\OrderRefundBody(); // \Swagger\Client\Model\OrderRefundBody |
try {
$result = $apiInstance->executeRefund($paycomet_api_token, $order, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RefundApi->executeRefund: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
paycomet_api_token | string | PAYCOMET API key (Refund privilege required) | |
order | string | ||
body | \Swagger\Client\Model\OrderRefundBody | [optional] |
\Swagger\Client\Model\InlineResponse20013
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]