Skip to content

Latest commit

 

History

History
130 lines (92 loc) · 6.08 KB

ActivationApi.md

File metadata and controls

130 lines (92 loc) · 6.08 KB

Optile\ActivationApi

All URIs are relative to https://api.sandbox.oscato.com/api

Method HTTP request Description
activatePaymentNetwork POST /lists/{listId}/{network}/activate Activate selected payment network
getActivatedPaymentNetwork GET /activations/{activationId} Get ACTIVATION details

activatePaymentNetwork

\Optile\Model\Activation activatePaymentNetwork($list_id, $network, $operation, $view)

Activate selected payment network

Initiates ACTIVATION operation in scope of LIST session with selected payment network and collected account-input-data.

Example

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

// Configure HTTP basic authorization: payment_auth
$config = Optile\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Optile\Api\ActivationApi(
    // 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
);
$list_id = "list_id_example"; // string | The `longId` of a `LIST` session to complete an `ACTIVATION` operation
$network = "network_example"; // string | The code of selected payment network
$operation = new \Optile\Model\Operation(); // \Optile\Model\Operation | Holds information for `ACTIVATION` operation with selected payment network
$view = array("view_example"); // string[] | Enables or disables view options to configure response when creating or retrieving `LIST`. Multiple options can be combined in the single value of the `view` query parameter. Use comma (\",\") to separate options.  See \"Get LIST session details\" for more detailed information about the `view` query parameter.

try {
    $result = $apiInstance->activatePaymentNetwork($list_id, $network, $operation, $view);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ActivationApi->activatePaymentNetwork: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
list_id string The `longId` of a `LIST` session to complete an `ACTIVATION` operation
network string The code of selected payment network
operation \Optile\Model\Operation Holds information for `ACTIVATION` operation with selected payment network
view string[] Enables or disables view options to configure response when creating or retrieving `LIST`. Multiple options can be combined in the single value of the `view` query parameter. Use comma (&quot;,&quot;) to separate options. See &quot;Get LIST session details&quot; for more detailed information about the `view` query parameter. [optional]

Return type

\Optile\Model\Activation

Authorization

payment_auth

HTTP request headers

  • Content-Type: application/vnd.optile.payment.enterprise-v1-extensible+json
  • Accept: application/vnd.optile.payment.enterprise-v1-extensible+json

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

getActivatedPaymentNetwork

\Optile\Model\Activation getActivatedPaymentNetwork($activation_id, $view)

Get ACTIVATION details

Retrieves current state of an ACTIVATION process.

Example

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

// Configure HTTP basic authorization: payment_auth
$config = Optile\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Optile\Api\ActivationApi(
    // 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
);
$activation_id = "activation_id_example"; // string | The `longId` of an `ACTIVATION` to retrieve
$view = array("view_example"); // string[] | Enables or disables view options to configure response when creating or retrieving `LIST`. Multiple options can be combined in the single value of the `view` query parameter. Use comma (\",\") to separate options.  See \"Get LIST session details\" for more detailed information about the `view` query parameter.

try {
    $result = $apiInstance->getActivatedPaymentNetwork($activation_id, $view);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ActivationApi->getActivatedPaymentNetwork: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
activation_id string The `longId` of an `ACTIVATION` to retrieve
view string[] Enables or disables view options to configure response when creating or retrieving `LIST`. Multiple options can be combined in the single value of the `view` query parameter. Use comma (&quot;,&quot;) to separate options. See &quot;Get LIST session details&quot; for more detailed information about the `view` query parameter. [optional]

Return type

\Optile\Model\Activation

Authorization

payment_auth

HTTP request headers

  • Content-Type: application/vnd.optile.payment.enterprise-v1-extensible+json
  • Accept: application/vnd.optile.payment.enterprise-v1-extensible+json

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