Skip to content

Latest commit

 

History

History
116 lines (82 loc) · 4.18 KB

MerchantGatewayApi.md

File metadata and controls

116 lines (82 loc) · 4.18 KB

Swagger\Client\MerchantGatewayApi

All URIs are relative to https://merchant-gateway-api.revenuewire.io/v1

Method HTTP request Description
createMerchantGateway POST /merchants create merchant gateway configuration
getMerchantGateway GET /merchants/{clientId} get merchant gateway configuration

createMerchantGateway

\Swagger\Client\Model\MerchantGateway createMerchantGateway($clientId, $gatewayPolicy)

create merchant gateway configuration

Example

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

// Configure API key authorization: APIKeyHeader
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
// Configure API key authorization: JWTHeader
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Authorization-JWT', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Authorization-JWT', 'Bearer');

$api_instance = new Swagger\Client\Api\MerchantGatewayApi();
$clientId = "clientId_example"; // string | 
$gatewayPolicy = "gatewayPolicy_example"; // string | 

try {
    $result = $api_instance->createMerchantGateway($clientId, $gatewayPolicy);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MerchantGatewayApi->createMerchantGateway: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
clientId string
gatewayPolicy string [optional]

Return type

\Swagger\Client\Model\MerchantGateway

Authorization

APIKeyHeader, JWTHeader

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

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

getMerchantGateway

\Swagger\Client\Model\MerchantGateway getMerchantGateway($clientId)

get merchant gateway configuration

Example

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

// Configure API key authorization: APIKeyHeader
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
// Configure API key authorization: JWTHeader
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Authorization-JWT', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Authorization-JWT', 'Bearer');

$api_instance = new Swagger\Client\Api\MerchantGatewayApi();
$clientId = "clientId_example"; // string | 

try {
    $result = $api_instance->getMerchantGateway($clientId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MerchantGatewayApi->getMerchantGateway: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
clientId string

Return type

\Swagger\Client\Model\MerchantGateway

Authorization

APIKeyHeader, JWTHeader

HTTP request headers

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

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