paymentCallBack
Return information about payment status
/v1.0/accounts/v1.0/paymentCallBack
Usage and SDK Samples
curl -X POST -H "X-API-Key": [[apiKey]]" "https://localhost:10010/v1.0/accounts/v1.0/paymentCallBack"
import .*;
import .auth.*;
import .model.*;
import .api.PISApi;
import java.io.File;
import java.util.*;
public class PISApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
PISApi apiInstance = new PISApi();
String authorization = authorization_example; // String | The value of the Authorization header should consist of 'type' + 'credentials', where for the approach using the 'type' token should be 'Bearer'.
String acceptEncoding = acceptEncoding_example; // String | Gzip, deflate
String acceptLanguage = acceptLanguage_example; // String | Prefered language of response
String acceptCharset = acceptCharset_example; // String | UTF-8
String xJWSSIGNATURE = xJWSSIGNATURE_example; // String | Detached JWS signature of the body of the payload
PaymentStatusInfoRequest paymentStatusInfoData = ; // PaymentStatusInfoRequest | Data with payment status information
try {
CallBackResponse result = apiInstance.paymentCallBack(authorization, acceptEncoding, acceptLanguage, acceptCharset, xJWSSIGNATURE, paymentStatusInfoData);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PISApi#paymentCallBack");
e.printStackTrace();
}
}
}
import .api.PISApi;
public class PISApiExample {
public static void main(String[] args) {
PISApi apiInstance = new PISApi();
String authorization = authorization_example; // String | The value of the Authorization header should consist of 'type' + 'credentials', where for the approach using the 'type' token should be 'Bearer'.
String acceptEncoding = acceptEncoding_example; // String | Gzip, deflate
String acceptLanguage = acceptLanguage_example; // String | Prefered language of response
String acceptCharset = acceptCharset_example; // String | UTF-8
String xJWSSIGNATURE = xJWSSIGNATURE_example; // String | Detached JWS signature of the body of the payload
PaymentStatusInfoRequest paymentStatusInfoData = ; // PaymentStatusInfoRequest | Data with payment status information
try {
CallBackResponse result = apiInstance.paymentCallBack(authorization, acceptEncoding, acceptLanguage, acceptCharset, xJWSSIGNATURE, paymentStatusInfoData);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PISApi#paymentCallBack");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key""];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key""];
String *authorization = authorization_example; // The value of the Authorization header should consist of 'type' + 'credentials', where for the approach using the 'type' token should be 'Bearer'.
String *acceptEncoding = acceptEncoding_example; // Gzip, deflate
String *acceptLanguage = acceptLanguage_example; // Prefered language of response
String *acceptCharset = acceptCharset_example; // UTF-8
String *xJWSSIGNATURE = xJWSSIGNATURE_example; // Detached JWS signature of the body of the payload
PaymentStatusInfoRequest *paymentStatusInfoData = ; // Data with payment status information
PISApi *apiInstance = [[PISApi alloc] init];
// Return information about payment status
[apiInstance paymentCallBackWith:authorization
acceptEncoding:acceptEncoding
acceptLanguage:acceptLanguage
acceptCharset:acceptCharset
xJWSSIGNATURE:xJWSSIGNATURE
paymentStatusInfoData:paymentStatusInfoData
completionHandler: ^(CallBackResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var PolishApi = require('polish_api');
var defaultClient = PolishApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-API-Key"'] = "Token"
var api = new PolishApi.PISApi()
var authorization = authorization_example; // {String} The value of the Authorization header should consist of 'type' + 'credentials', where for the approach using the 'type' token should be 'Bearer'.
var acceptEncoding = acceptEncoding_example; // {String} Gzip, deflate
var acceptLanguage = acceptLanguage_example; // {String} Prefered language of response
var acceptCharset = acceptCharset_example; // {String} UTF-8
var xJWSSIGNATURE = xJWSSIGNATURE_example; // {String} Detached JWS signature of the body of the payload
var paymentStatusInfoData = ; // {PaymentStatusInfoRequest} Data with payment status information
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.paymentCallBack(authorization, acceptEncoding, acceptLanguage, acceptCharset, xJWSSIGNATURE, paymentStatusInfoData, callback);
using System;
using System.Diagnostics;
using .Api;
using .Client;
using .Model;
namespace Example
{
public class paymentCallBackExample
{
public void main()
{
// Configure API key authorization: ApiKeyAuth
Configuration.Default.ApiKey.Add("X-API-Key"", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-API-Key"", "Bearer");
var apiInstance = new PISApi();
var authorization = authorization_example; // String | The value of the Authorization header should consist of 'type' + 'credentials', where for the approach using the 'type' token should be 'Bearer'.
var acceptEncoding = acceptEncoding_example; // String | Gzip, deflate
var acceptLanguage = acceptLanguage_example; // String | Prefered language of response
var acceptCharset = acceptCharset_example; // String | UTF-8
var xJWSSIGNATURE = xJWSSIGNATURE_example; // String | Detached JWS signature of the body of the payload
var paymentStatusInfoData = new PaymentStatusInfoRequest(); // PaymentStatusInfoRequest | Data with payment status information
try
{
// Return information about payment status
CallBackResponse result = apiInstance.paymentCallBack(authorization, acceptEncoding, acceptLanguage, acceptCharset, xJWSSIGNATURE, paymentStatusInfoData);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PISApi.paymentCallBack: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key"', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// \Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key"', 'Bearer');
$api_instance = new Swagger\Client\Api\PISApi();
$authorization = authorization_example; // String | The value of the Authorization header should consist of 'type' + 'credentials', where for the approach using the 'type' token should be 'Bearer'.
$acceptEncoding = acceptEncoding_example; // String | Gzip, deflate
$acceptLanguage = acceptLanguage_example; // String | Prefered language of response
$acceptCharset = acceptCharset_example; // String | UTF-8
$xJWSSIGNATURE = xJWSSIGNATURE_example; // String | Detached JWS signature of the body of the payload
$paymentStatusInfoData = ; // PaymentStatusInfoRequest | Data with payment status information
try {
$result = $api_instance->paymentCallBack($authorization, $acceptEncoding, $acceptLanguage, $acceptCharset, $xJWSSIGNATURE, $paymentStatusInfoData);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PISApi->paymentCallBack: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use ::Configuration;
use ::PISApi;
# Configure API key authorization: ApiKeyAuth
$::Configuration::api_key->{'X-API-Key"'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$::Configuration::api_key_prefix->{'X-API-Key"'} = "Bearer";
my $api_instance = ::PISApi->new();
my $authorization = authorization_example; # String | The value of the Authorization header should consist of 'type' + 'credentials', where for the approach using the 'type' token should be 'Bearer'.
my $acceptEncoding = acceptEncoding_example; # String | Gzip, deflate
my $acceptLanguage = acceptLanguage_example; # String | Prefered language of response
my $acceptCharset = acceptCharset_example; # String | UTF-8
my $xJWSSIGNATURE = xJWSSIGNATURE_example; # String | Detached JWS signature of the body of the payload
my $paymentStatusInfoData = ::Object::PaymentStatusInfoRequest->new(); # PaymentStatusInfoRequest | Data with payment status information
eval {
my $result = $api_instance->paymentCallBack(authorization => $authorization, acceptEncoding => $acceptEncoding, acceptLanguage => $acceptLanguage, acceptCharset => $acceptCharset, xJWSSIGNATURE => $xJWSSIGNATURE, paymentStatusInfoData => $paymentStatusInfoData);
print Dumper($result);
};
if ($@) {
warn "Exception when calling PISApi->paymentCallBack: $@\n";
}
from __future__ import print_statement
import time
import
from .rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
.configuration.api_key['X-API-Key"'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# .configuration.api_key_prefix['X-API-Key"'] = 'Bearer'
# create an instance of the API class
api_instance = .PISApi()
authorization = authorization_example # String | The value of the Authorization header should consist of 'type' + 'credentials', where for the approach using the 'type' token should be 'Bearer'.
acceptEncoding = acceptEncoding_example # String | Gzip, deflate
acceptLanguage = acceptLanguage_example # String | Prefered language of response
acceptCharset = acceptCharset_example # String | UTF-8
xJWSSIGNATURE = xJWSSIGNATURE_example # String | Detached JWS signature of the body of the payload
paymentStatusInfoData = # PaymentStatusInfoRequest | Data with payment status information
try:
# Return information about payment status
api_response = api_instance.payment_call_back(authorization, acceptEncoding, acceptLanguage, acceptCharset, xJWSSIGNATURE, paymentStatusInfoData)
pprint(api_response)
except ApiException as e:
print("Exception when calling PISApi->paymentCallBack: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
Authorization* | |
Accept-Encoding* |
String
Gzip, deflate
Required
|
Accept-Language* |
String
Prefered language of response
Required
|
Accept-Charset* |
String
UTF-8
Required
|
X-JWS-SIGNATURE* |
String
Detached JWS signature of the body of the payload
Required
|
Body parameters
Name | Description |
---|---|
paymentStatusInfoData * |
Responses
Status: 200 - Success
Name | Type | Format | Description |
---|---|---|---|
Date | String | Request timestamp in RFC 5322 date and time format | |
Content-Type | String | Standard HTTP Header; Represents the format of the payload returned in the response | |
Content-Encoding | String | Gzip, deflate | |
X-JWS-SIGNATURE | String | Detached JWS signature of the body of the response |