curl --request POST \
--url https://{domain}:{port}/Cortina/StaticQR/Refund \
--header 'Content-Type: application/*+json' \
--data '
{
"ActorInfo": {
"Id": 2001102296,
"MerchantId": 10011,
"Name": "Far East Dev Zone",
"OperatorId": 2000305191,
"OperatorName": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"CurrencyCode": "USD",
"CurrencyNumeric": 376,
"SiteId": 12,
"TransactionId": "236584335969834429321847829253667359,"
},
"CustomData": {
"Actor": 12312312,
"DirectActor": 12312312,
"Distributor": "superDistributor",
"Machine": 131231348,
"Operator": 123121434134
},
"MachineInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "United States of America",
"NumericCode": 840
},
"DecimalPlace": 2,
"GroupId": "Beverages",
"Id": 869761713,
"Name": "TestPayStaticQR V2",
"Offset": 2,
"OperatorId": 12345,
"TerminalId": 987654321,
"ZipCode": 10001
},
"PaymentInfo": {
"AdditionalData": "string",
"AuthAmount": 0,
"AuthCode": "string",
"AuthDateTime": "string",
"AuthSource": "string",
"IsGatewayTimeout": true,
"RRN": "string",
"SettAmount": 0,
"SettDateTime": "string",
"SrvTranId": "string",
"Token": "string",
"TraceNumber": "string"
},
"ReasonText": "string"
}
'import requests
url = "https://{domain}:{port}/Cortina/StaticQR/Refund"
payload = {
"ActorInfo": {
"Id": 2001102296,
"MerchantId": 10011,
"Name": "Far East Dev Zone",
"OperatorId": 2000305191,
"OperatorName": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"CurrencyCode": "USD",
"CurrencyNumeric": 376,
"SiteId": 12,
"TransactionId": "236584335969834429321847829253667359,"
},
"CustomData": {
"Actor": 12312312,
"DirectActor": 12312312,
"Distributor": "superDistributor",
"Machine": 131231348,
"Operator": 123121434134
},
"MachineInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "United States of America",
"NumericCode": 840
},
"DecimalPlace": 2,
"GroupId": "Beverages",
"Id": 869761713,
"Name": "TestPayStaticQR V2",
"Offset": 2,
"OperatorId": 12345,
"TerminalId": 987654321,
"ZipCode": 10001
},
"PaymentInfo": {
"AdditionalData": "string",
"AuthAmount": 0,
"AuthCode": "string",
"AuthDateTime": "string",
"AuthSource": "string",
"IsGatewayTimeout": True,
"RRN": "string",
"SettAmount": 0,
"SettDateTime": "string",
"SrvTranId": "string",
"Token": "string",
"TraceNumber": "string"
},
"ReasonText": "string"
}
headers = {"Content-Type": "application/*+json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/*+json'},
body: JSON.stringify({
ActorInfo: {
Id: 2001102296,
MerchantId: 10011,
Name: 'Far East Dev Zone',
OperatorId: 2000305191,
OperatorName: 'TanyaT_OP'
},
BasicInfo: {
Amount: 0.1,
CurrencyCode: 'USD',
CurrencyNumeric: 376,
SiteId: 12,
TransactionId: '236584335969834429321847829253667359,'
},
CustomData: {
Actor: 12312312,
DirectActor: 12312312,
Distributor: 'superDistributor',
Machine: 131231348,
Operator: 123121434134
},
MachineInfo: {
Country: {
Alpha2Code: 'US',
Alpha3Code: 'USA',
Name: 'United States of America',
NumericCode: 840
},
DecimalPlace: 2,
GroupId: 'Beverages',
Id: 869761713,
Name: 'TestPayStaticQR V2',
Offset: 2,
OperatorId: 12345,
TerminalId: 987654321,
ZipCode: 10001
},
PaymentInfo: {
AdditionalData: 'string',
AuthAmount: 0,
AuthCode: 'string',
AuthDateTime: 'string',
AuthSource: 'string',
IsGatewayTimeout: true,
RRN: 'string',
SettAmount: 0,
SettDateTime: 'string',
SrvTranId: 'string',
Token: 'string',
TraceNumber: 'string'
},
ReasonText: 'string'
})
};
fetch('https://{domain}:{port}/Cortina/StaticQR/Refund', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "https://{domain}:{port}/Cortina/StaticQR/Refund",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ActorInfo' => [
'Id' => 2001102296,
'MerchantId' => 10011,
'Name' => 'Far East Dev Zone',
'OperatorId' => 2000305191,
'OperatorName' => 'TanyaT_OP'
],
'BasicInfo' => [
'Amount' => 0.1,
'CurrencyCode' => 'USD',
'CurrencyNumeric' => 376,
'SiteId' => 12,
'TransactionId' => '236584335969834429321847829253667359,'
],
'CustomData' => [
'Actor' => 12312312,
'DirectActor' => 12312312,
'Distributor' => 'superDistributor',
'Machine' => 131231348,
'Operator' => 123121434134
],
'MachineInfo' => [
'Country' => [
'Alpha2Code' => 'US',
'Alpha3Code' => 'USA',
'Name' => 'United States of America',
'NumericCode' => 840
],
'DecimalPlace' => 2,
'GroupId' => 'Beverages',
'Id' => 869761713,
'Name' => 'TestPayStaticQR V2',
'Offset' => 2,
'OperatorId' => 12345,
'TerminalId' => 987654321,
'ZipCode' => 10001
],
'PaymentInfo' => [
'AdditionalData' => 'string',
'AuthAmount' => 0,
'AuthCode' => 'string',
'AuthDateTime' => 'string',
'AuthSource' => 'string',
'IsGatewayTimeout' => true,
'RRN' => 'string',
'SettAmount' => 0,
'SettDateTime' => 'string',
'SrvTranId' => 'string',
'Token' => 'string',
'TraceNumber' => 'string'
],
'ReasonText' => 'string'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/*+json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{domain}:{port}/Cortina/StaticQR/Refund"
payload := strings.NewReader("{\n \"ActorInfo\": {\n \"Id\": 2001102296,\n \"MerchantId\": 10011,\n \"Name\": \"Far East Dev Zone\",\n \"OperatorId\": 2000305191,\n \"OperatorName\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"CurrencyCode\": \"USD\",\n \"CurrencyNumeric\": 376,\n \"SiteId\": 12,\n \"TransactionId\": \"236584335969834429321847829253667359,\"\n },\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"MachineInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"United States of America\",\n \"NumericCode\": 840\n },\n \"DecimalPlace\": 2,\n \"GroupId\": \"Beverages\",\n \"Id\": 869761713,\n \"Name\": \"TestPayStaticQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n },\n \"PaymentInfo\": {\n \"AdditionalData\": \"string\",\n \"AuthAmount\": 0,\n \"AuthCode\": \"string\",\n \"AuthDateTime\": \"string\",\n \"AuthSource\": \"string\",\n \"IsGatewayTimeout\": true,\n \"RRN\": \"string\",\n \"SettAmount\": 0,\n \"SettDateTime\": \"string\",\n \"SrvTranId\": \"string\",\n \"Token\": \"string\",\n \"TraceNumber\": \"string\"\n },\n \"ReasonText\": \"string\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/*+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{domain}:{port}/Cortina/StaticQR/Refund")
.header("Content-Type", "application/*+json")
.body("{\n \"ActorInfo\": {\n \"Id\": 2001102296,\n \"MerchantId\": 10011,\n \"Name\": \"Far East Dev Zone\",\n \"OperatorId\": 2000305191,\n \"OperatorName\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"CurrencyCode\": \"USD\",\n \"CurrencyNumeric\": 376,\n \"SiteId\": 12,\n \"TransactionId\": \"236584335969834429321847829253667359,\"\n },\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"MachineInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"United States of America\",\n \"NumericCode\": 840\n },\n \"DecimalPlace\": 2,\n \"GroupId\": \"Beverages\",\n \"Id\": 869761713,\n \"Name\": \"TestPayStaticQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n },\n \"PaymentInfo\": {\n \"AdditionalData\": \"string\",\n \"AuthAmount\": 0,\n \"AuthCode\": \"string\",\n \"AuthDateTime\": \"string\",\n \"AuthSource\": \"string\",\n \"IsGatewayTimeout\": true,\n \"RRN\": \"string\",\n \"SettAmount\": 0,\n \"SettDateTime\": \"string\",\n \"SrvTranId\": \"string\",\n \"Token\": \"string\",\n \"TraceNumber\": \"string\"\n },\n \"ReasonText\": \"string\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/StaticQR/Refund")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/*+json'
request.body = "{\n \"ActorInfo\": {\n \"Id\": 2001102296,\n \"MerchantId\": 10011,\n \"Name\": \"Far East Dev Zone\",\n \"OperatorId\": 2000305191,\n \"OperatorName\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"CurrencyCode\": \"USD\",\n \"CurrencyNumeric\": 376,\n \"SiteId\": 12,\n \"TransactionId\": \"236584335969834429321847829253667359,\"\n },\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"MachineInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"United States of America\",\n \"NumericCode\": 840\n },\n \"DecimalPlace\": 2,\n \"GroupId\": \"Beverages\",\n \"Id\": 869761713,\n \"Name\": \"TestPayStaticQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n },\n \"PaymentInfo\": {\n \"AdditionalData\": \"string\",\n \"AuthAmount\": 0,\n \"AuthCode\": \"string\",\n \"AuthDateTime\": \"string\",\n \"AuthSource\": \"string\",\n \"IsGatewayTimeout\": true,\n \"RRN\": \"string\",\n \"SettAmount\": 0,\n \"SettDateTime\": \"string\",\n \"SrvTranId\": \"string\",\n \"Token\": \"string\",\n \"TraceNumber\": \"string\"\n },\n \"ReasonText\": \"string\"\n}"
response = http.request(request)
puts response.read_body{
"Status": {
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}Cortina StaticQR Refund
curl --request POST \
--url https://{domain}:{port}/Cortina/StaticQR/Refund \
--header 'Content-Type: application/*+json' \
--data '
{
"ActorInfo": {
"Id": 2001102296,
"MerchantId": 10011,
"Name": "Far East Dev Zone",
"OperatorId": 2000305191,
"OperatorName": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"CurrencyCode": "USD",
"CurrencyNumeric": 376,
"SiteId": 12,
"TransactionId": "236584335969834429321847829253667359,"
},
"CustomData": {
"Actor": 12312312,
"DirectActor": 12312312,
"Distributor": "superDistributor",
"Machine": 131231348,
"Operator": 123121434134
},
"MachineInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "United States of America",
"NumericCode": 840
},
"DecimalPlace": 2,
"GroupId": "Beverages",
"Id": 869761713,
"Name": "TestPayStaticQR V2",
"Offset": 2,
"OperatorId": 12345,
"TerminalId": 987654321,
"ZipCode": 10001
},
"PaymentInfo": {
"AdditionalData": "string",
"AuthAmount": 0,
"AuthCode": "string",
"AuthDateTime": "string",
"AuthSource": "string",
"IsGatewayTimeout": true,
"RRN": "string",
"SettAmount": 0,
"SettDateTime": "string",
"SrvTranId": "string",
"Token": "string",
"TraceNumber": "string"
},
"ReasonText": "string"
}
'import requests
url = "https://{domain}:{port}/Cortina/StaticQR/Refund"
payload = {
"ActorInfo": {
"Id": 2001102296,
"MerchantId": 10011,
"Name": "Far East Dev Zone",
"OperatorId": 2000305191,
"OperatorName": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"CurrencyCode": "USD",
"CurrencyNumeric": 376,
"SiteId": 12,
"TransactionId": "236584335969834429321847829253667359,"
},
"CustomData": {
"Actor": 12312312,
"DirectActor": 12312312,
"Distributor": "superDistributor",
"Machine": 131231348,
"Operator": 123121434134
},
"MachineInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "United States of America",
"NumericCode": 840
},
"DecimalPlace": 2,
"GroupId": "Beverages",
"Id": 869761713,
"Name": "TestPayStaticQR V2",
"Offset": 2,
"OperatorId": 12345,
"TerminalId": 987654321,
"ZipCode": 10001
},
"PaymentInfo": {
"AdditionalData": "string",
"AuthAmount": 0,
"AuthCode": "string",
"AuthDateTime": "string",
"AuthSource": "string",
"IsGatewayTimeout": True,
"RRN": "string",
"SettAmount": 0,
"SettDateTime": "string",
"SrvTranId": "string",
"Token": "string",
"TraceNumber": "string"
},
"ReasonText": "string"
}
headers = {"Content-Type": "application/*+json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/*+json'},
body: JSON.stringify({
ActorInfo: {
Id: 2001102296,
MerchantId: 10011,
Name: 'Far East Dev Zone',
OperatorId: 2000305191,
OperatorName: 'TanyaT_OP'
},
BasicInfo: {
Amount: 0.1,
CurrencyCode: 'USD',
CurrencyNumeric: 376,
SiteId: 12,
TransactionId: '236584335969834429321847829253667359,'
},
CustomData: {
Actor: 12312312,
DirectActor: 12312312,
Distributor: 'superDistributor',
Machine: 131231348,
Operator: 123121434134
},
MachineInfo: {
Country: {
Alpha2Code: 'US',
Alpha3Code: 'USA',
Name: 'United States of America',
NumericCode: 840
},
DecimalPlace: 2,
GroupId: 'Beverages',
Id: 869761713,
Name: 'TestPayStaticQR V2',
Offset: 2,
OperatorId: 12345,
TerminalId: 987654321,
ZipCode: 10001
},
PaymentInfo: {
AdditionalData: 'string',
AuthAmount: 0,
AuthCode: 'string',
AuthDateTime: 'string',
AuthSource: 'string',
IsGatewayTimeout: true,
RRN: 'string',
SettAmount: 0,
SettDateTime: 'string',
SrvTranId: 'string',
Token: 'string',
TraceNumber: 'string'
},
ReasonText: 'string'
})
};
fetch('https://{domain}:{port}/Cortina/StaticQR/Refund', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "https://{domain}:{port}/Cortina/StaticQR/Refund",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ActorInfo' => [
'Id' => 2001102296,
'MerchantId' => 10011,
'Name' => 'Far East Dev Zone',
'OperatorId' => 2000305191,
'OperatorName' => 'TanyaT_OP'
],
'BasicInfo' => [
'Amount' => 0.1,
'CurrencyCode' => 'USD',
'CurrencyNumeric' => 376,
'SiteId' => 12,
'TransactionId' => '236584335969834429321847829253667359,'
],
'CustomData' => [
'Actor' => 12312312,
'DirectActor' => 12312312,
'Distributor' => 'superDistributor',
'Machine' => 131231348,
'Operator' => 123121434134
],
'MachineInfo' => [
'Country' => [
'Alpha2Code' => 'US',
'Alpha3Code' => 'USA',
'Name' => 'United States of America',
'NumericCode' => 840
],
'DecimalPlace' => 2,
'GroupId' => 'Beverages',
'Id' => 869761713,
'Name' => 'TestPayStaticQR V2',
'Offset' => 2,
'OperatorId' => 12345,
'TerminalId' => 987654321,
'ZipCode' => 10001
],
'PaymentInfo' => [
'AdditionalData' => 'string',
'AuthAmount' => 0,
'AuthCode' => 'string',
'AuthDateTime' => 'string',
'AuthSource' => 'string',
'IsGatewayTimeout' => true,
'RRN' => 'string',
'SettAmount' => 0,
'SettDateTime' => 'string',
'SrvTranId' => 'string',
'Token' => 'string',
'TraceNumber' => 'string'
],
'ReasonText' => 'string'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/*+json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{domain}:{port}/Cortina/StaticQR/Refund"
payload := strings.NewReader("{\n \"ActorInfo\": {\n \"Id\": 2001102296,\n \"MerchantId\": 10011,\n \"Name\": \"Far East Dev Zone\",\n \"OperatorId\": 2000305191,\n \"OperatorName\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"CurrencyCode\": \"USD\",\n \"CurrencyNumeric\": 376,\n \"SiteId\": 12,\n \"TransactionId\": \"236584335969834429321847829253667359,\"\n },\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"MachineInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"United States of America\",\n \"NumericCode\": 840\n },\n \"DecimalPlace\": 2,\n \"GroupId\": \"Beverages\",\n \"Id\": 869761713,\n \"Name\": \"TestPayStaticQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n },\n \"PaymentInfo\": {\n \"AdditionalData\": \"string\",\n \"AuthAmount\": 0,\n \"AuthCode\": \"string\",\n \"AuthDateTime\": \"string\",\n \"AuthSource\": \"string\",\n \"IsGatewayTimeout\": true,\n \"RRN\": \"string\",\n \"SettAmount\": 0,\n \"SettDateTime\": \"string\",\n \"SrvTranId\": \"string\",\n \"Token\": \"string\",\n \"TraceNumber\": \"string\"\n },\n \"ReasonText\": \"string\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/*+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{domain}:{port}/Cortina/StaticQR/Refund")
.header("Content-Type", "application/*+json")
.body("{\n \"ActorInfo\": {\n \"Id\": 2001102296,\n \"MerchantId\": 10011,\n \"Name\": \"Far East Dev Zone\",\n \"OperatorId\": 2000305191,\n \"OperatorName\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"CurrencyCode\": \"USD\",\n \"CurrencyNumeric\": 376,\n \"SiteId\": 12,\n \"TransactionId\": \"236584335969834429321847829253667359,\"\n },\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"MachineInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"United States of America\",\n \"NumericCode\": 840\n },\n \"DecimalPlace\": 2,\n \"GroupId\": \"Beverages\",\n \"Id\": 869761713,\n \"Name\": \"TestPayStaticQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n },\n \"PaymentInfo\": {\n \"AdditionalData\": \"string\",\n \"AuthAmount\": 0,\n \"AuthCode\": \"string\",\n \"AuthDateTime\": \"string\",\n \"AuthSource\": \"string\",\n \"IsGatewayTimeout\": true,\n \"RRN\": \"string\",\n \"SettAmount\": 0,\n \"SettDateTime\": \"string\",\n \"SrvTranId\": \"string\",\n \"Token\": \"string\",\n \"TraceNumber\": \"string\"\n },\n \"ReasonText\": \"string\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/StaticQR/Refund")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/*+json'
request.body = "{\n \"ActorInfo\": {\n \"Id\": 2001102296,\n \"MerchantId\": 10011,\n \"Name\": \"Far East Dev Zone\",\n \"OperatorId\": 2000305191,\n \"OperatorName\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"CurrencyCode\": \"USD\",\n \"CurrencyNumeric\": 376,\n \"SiteId\": 12,\n \"TransactionId\": \"236584335969834429321847829253667359,\"\n },\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"MachineInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"United States of America\",\n \"NumericCode\": 840\n },\n \"DecimalPlace\": 2,\n \"GroupId\": \"Beverages\",\n \"Id\": 869761713,\n \"Name\": \"TestPayStaticQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n },\n \"PaymentInfo\": {\n \"AdditionalData\": \"string\",\n \"AuthAmount\": 0,\n \"AuthCode\": \"string\",\n \"AuthDateTime\": \"string\",\n \"AuthSource\": \"string\",\n \"IsGatewayTimeout\": true,\n \"RRN\": \"string\",\n \"SettAmount\": 0,\n \"SettDateTime\": \"string\",\n \"SrvTranId\": \"string\",\n \"Token\": \"string\",\n \"TraceNumber\": \"string\"\n },\n \"ReasonText\": \"string\"\n}"
response = http.request(request)
puts response.read_body{
"Status": {
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}Body
Merchant (Actor) details.
Show child attributes
Show child attributes
Basic transaction information.
Show child attributes
Show child attributes
Custom Fields Information, Contact Nayax TPOC to define.
Show child attributes
Show child attributes
Information about the machine involved in the transaction.
Show child attributes
Show child attributes
Identifies transaction information and references. Included in all response messages for payment calls.
When used in requests (e.g. /Settlement, /Void, /Refund, /Inquiry), this object should match the PaymentInfo returned in a previous call.
Show child attributes
Show child attributes
- Optional
- Refund reason code (by nayax system table of error codes)
- Optional
- Length: 255
- Refund reason description (by nayax system table of error codes)
Response
Success
Identifies transaction information and references. Included in all response messages for payment calls.
When used in requests (e.g. /Settlement, /Void, /Refund, /Inquiry), this object should match the PaymentInfo returned in a previous call.
Show child attributes
Show child attributes
Transaction status
Show child attributes
Show child attributes
Was this page helpful?