Skip to content

Latest commit

 

History

History
113 lines (80 loc) · 3.74 KB

DccApi.md

File metadata and controls

113 lines (80 loc) · 3.74 KB

Swagger\Client\DccApi

All URIs are relative to https://rest.paycomet.com

Method HTTP request Description
dccPurchaseConfirm POST /v1/payments/dcc/{order}/confirm Confirm previous DCC payment
dccPurchaseCreate POST /v1/payments/dcc Create an DCC payment

dccPurchaseConfirm

\Swagger\Client\Model\InlineResponse20024 dccPurchaseConfirm($paycomet_api_token, $order, $body)

Confirm previous DCC payment

confirm_purchase_dcc

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\DccApi(
    // 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 (Authorization privilege required)
$order = "order_example"; // string | 
$body = new \Swagger\Client\Model\OrderConfirmBody(); // \Swagger\Client\Model\OrderConfirmBody | 

try {
    $result = $apiInstance->dccPurchaseConfirm($paycomet_api_token, $order, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DccApi->dccPurchaseConfirm: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
paycomet_api_token string PAYCOMET API key (Authorization privilege required)
order string
body \Swagger\Client\Model\OrderConfirmBody [optional]

Return type

\Swagger\Client\Model\InlineResponse20024

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

dccPurchaseCreate

\Swagger\Client\Model\InlineResponse20023 dccPurchaseCreate($paycomet_api_token, $body)

Create an DCC payment

execute_purchase_dcc

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\DccApi(
    // 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 (Authorization privilege required)
$body = new \Swagger\Client\Model\PaymentsDccBody(); // \Swagger\Client\Model\PaymentsDccBody | 

try {
    $result = $apiInstance->dccPurchaseCreate($paycomet_api_token, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DccApi->dccPurchaseCreate: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
paycomet_api_token string PAYCOMET API key (Authorization privilege required)
body \Swagger\Client\Model\PaymentsDccBody [optional]

Return type

\Swagger\Client\Model\InlineResponse20023

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]