Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.83 KB

File metadata and controls

60 lines (40 loc) · 1.83 KB

Flipdish\Client\PaymentsApi

All URIs are relative to https://api.flipdish.co

Method HTTP request Description
getOrderPaymentInformation GET /api/v1.0/payments/payment/{orderId}/refundable

getOrderPaymentInformation

\Flipdish\Client\Models\RestApiResultOrderPaymentInformation getOrderPaymentInformation($order_id)

Example

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

// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Flipdish\\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(),
    $config
);
$order_id = 56; // int | 

try {
    $result = $apiInstance->getOrderPaymentInformation($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentsApi->getOrderPaymentInformation: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
order_id int

Return type

\Flipdish\Client\Models\RestApiResultOrderPaymentInformation

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

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