All URIs are relative to https://www.saferpay.com/api/Payment/v1
Method | HTTP request | Description |
---|---|---|
omniChannelAcquireTransactionPost | POST /OmniChannel/AcquireTransaction | |
omniChannelInsertAliasPost | POST /OmniChannel/InsertAlias |
\Soxyl\Saferpay\Model\OmniChannelAcquireTransactionResponse omniChannelAcquireTransactionPost($omni_channel_acquire_transaction_request)
This function may be used to acquire an authorized transaction by providing a SixTransactionReference. This transaction can then be captured or canceled.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
$config = Soxyl\Saferpay\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Soxyl\Saferpay\Api\OmniChannelApi(
// 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
);
$omni_channel_acquire_transaction_request = new \Soxyl\Saferpay\Model\OmniChannelAcquireTransactionRequest(); // \Soxyl\Saferpay\Model\OmniChannelAcquireTransactionRequest |
try {
$result = $apiInstance->omniChannelAcquireTransactionPost($omni_channel_acquire_transaction_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OmniChannelApi->omniChannelAcquireTransactionPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
omni_channel_acquire_transaction_request | \Soxyl\Saferpay\Model\OmniChannelAcquireTransactionRequest |
\Soxyl\Saferpay\Model\OmniChannelAcquireTransactionResponse
- Content-Type: application/json
- Accept: application/json, text/plain,
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Soxyl\Saferpay\Model\OmniChannelInsertAliasResponse omniChannelInsertAliasPost($omni_channel_insert_alias_request)
This function may be used to create an alias by providing a SixTransactionReference.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
$config = Soxyl\Saferpay\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Soxyl\Saferpay\Api\OmniChannelApi(
// 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
);
$omni_channel_insert_alias_request = new \Soxyl\Saferpay\Model\OmniChannelInsertAliasRequest(); // \Soxyl\Saferpay\Model\OmniChannelInsertAliasRequest |
try {
$result = $apiInstance->omniChannelInsertAliasPost($omni_channel_insert_alias_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OmniChannelApi->omniChannelInsertAliasPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
omni_channel_insert_alias_request | \Soxyl\Saferpay\Model\OmniChannelInsertAliasRequest |
\Soxyl\Saferpay\Model\OmniChannelInsertAliasResponse
- Content-Type: application/json
- Accept: application/json, text/plain,
[Back to top] [Back to API list] [Back to Model list] [Back to README]