curl --request POST \
--url https://{domain}:{port}/Cortina/DynamicQR/Inquiry \
--header 'Content-Type: application/*+json' \
--data '
{
"ActorInfo": {
"CountryCode": "US",
"Id": 2001505522,
"MerchantId": "123456789",
"Name": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"Currency": "ILS",
"MachineAuTime": "230221101008",
"SiteId": 1,
"TransactionId": "236584335969834429321847829253667359"
},
"CustomData": {
"Actor": "",
"Machine": {
"dynamic_qr_channels_rec_ids": "8,19"
}
},
"DeviceInfo": {
"FWVersion": "4.0.0.12-RC1 - Sep 22 2020",
"HwSerial": 434324119376524,
"Id": 0,
"Type": "ONYX"
},
"MachineInfo": {
"Address": "TestPayDynamicQR V2",
"City": "Abbeville",
"Country": "UNITED STATES",
"CountryCode": "US",
"CountryISOCode": "USA",
"DecimalPlace": 2,
"Id": 869761713,
"Name": "TestPayDynamicQR V2",
"Offset": "2.00",
"TerminalId": "987654321",
"ZipCode": "1223311"
},
"PaymentInfo": {
"AuthAmount": 0.1,
"IsGatewayTimeout": false,
"RRN": "111111",
"SettAmount": 0,
"SrvTranId": "236584335969834429321847829253667359"
},
"Polling": {
"IsLastPolling": false,
"PollingAttemptCounter": 30
},
"Products": [
{
"Code": 11,
"Measurement": 1,
"Name": "Stella",
"Price": 0.1,
"UnitOfMeasurement": "Unit"
}
]
}
'import requests
url = "https://{domain}:{port}/Cortina/DynamicQR/Inquiry"
payload = {
"ActorInfo": {
"CountryCode": "US",
"Id": 2001505522,
"MerchantId": "123456789",
"Name": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"Currency": "ILS",
"MachineAuTime": "230221101008",
"SiteId": 1,
"TransactionId": "236584335969834429321847829253667359"
},
"CustomData": {
"Actor": "",
"Machine": { "dynamic_qr_channels_rec_ids": "8,19" }
},
"DeviceInfo": {
"FWVersion": "4.0.0.12-RC1 - Sep 22 2020",
"HwSerial": 434324119376524,
"Id": 0,
"Type": "ONYX"
},
"MachineInfo": {
"Address": "TestPayDynamicQR V2",
"City": "Abbeville",
"Country": "UNITED STATES",
"CountryCode": "US",
"CountryISOCode": "USA",
"DecimalPlace": 2,
"Id": 869761713,
"Name": "TestPayDynamicQR V2",
"Offset": "2.00",
"TerminalId": "987654321",
"ZipCode": "1223311"
},
"PaymentInfo": {
"AuthAmount": 0.1,
"IsGatewayTimeout": False,
"RRN": "111111",
"SettAmount": 0,
"SrvTranId": "236584335969834429321847829253667359"
},
"Polling": {
"IsLastPolling": False,
"PollingAttemptCounter": 30
},
"Products": [
{
"Code": 11,
"Measurement": 1,
"Name": "Stella",
"Price": 0.1,
"UnitOfMeasurement": "Unit"
}
]
}
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: {CountryCode: 'US', Id: 2001505522, MerchantId: '123456789', Name: 'TanyaT_OP'},
BasicInfo: {
Amount: 0.1,
Currency: 'ILS',
MachineAuTime: '230221101008',
SiteId: 1,
TransactionId: '236584335969834429321847829253667359'
},
CustomData: {Actor: '', Machine: {dynamic_qr_channels_rec_ids: '8,19'}},
DeviceInfo: {
FWVersion: '4.0.0.12-RC1 - Sep 22 2020',
HwSerial: 434324119376524,
Id: 0,
Type: 'ONYX'
},
MachineInfo: {
Address: 'TestPayDynamicQR V2',
City: 'Abbeville',
Country: 'UNITED STATES',
CountryCode: 'US',
CountryISOCode: 'USA',
DecimalPlace: 2,
Id: 869761713,
Name: 'TestPayDynamicQR V2',
Offset: '2.00',
TerminalId: '987654321',
ZipCode: '1223311'
},
PaymentInfo: {
AuthAmount: 0.1,
IsGatewayTimeout: false,
RRN: '111111',
SettAmount: 0,
SrvTranId: '236584335969834429321847829253667359'
},
Polling: {IsLastPolling: false, PollingAttemptCounter: 30},
Products: [
{
Code: 11,
Measurement: 1,
Name: 'Stella',
Price: 0.1,
UnitOfMeasurement: 'Unit'
}
]
})
};
fetch('https://{domain}:{port}/Cortina/DynamicQR/Inquiry', 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/DynamicQR/Inquiry",
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' => [
'CountryCode' => 'US',
'Id' => 2001505522,
'MerchantId' => '123456789',
'Name' => 'TanyaT_OP'
],
'BasicInfo' => [
'Amount' => 0.1,
'Currency' => 'ILS',
'MachineAuTime' => '230221101008',
'SiteId' => 1,
'TransactionId' => '236584335969834429321847829253667359'
],
'CustomData' => [
'Actor' => '',
'Machine' => [
'dynamic_qr_channels_rec_ids' => '8,19'
]
],
'DeviceInfo' => [
'FWVersion' => '4.0.0.12-RC1 - Sep 22 2020',
'HwSerial' => 434324119376524,
'Id' => 0,
'Type' => 'ONYX'
],
'MachineInfo' => [
'Address' => 'TestPayDynamicQR V2',
'City' => 'Abbeville',
'Country' => 'UNITED STATES',
'CountryCode' => 'US',
'CountryISOCode' => 'USA',
'DecimalPlace' => 2,
'Id' => 869761713,
'Name' => 'TestPayDynamicQR V2',
'Offset' => '2.00',
'TerminalId' => '987654321',
'ZipCode' => '1223311'
],
'PaymentInfo' => [
'AuthAmount' => 0.1,
'IsGatewayTimeout' => false,
'RRN' => '111111',
'SettAmount' => 0,
'SrvTranId' => '236584335969834429321847829253667359'
],
'Polling' => [
'IsLastPolling' => false,
'PollingAttemptCounter' => 30
],
'Products' => [
[
'Code' => 11,
'Measurement' => 1,
'Name' => 'Stella',
'Price' => 0.1,
'UnitOfMeasurement' => 'Unit'
]
]
]),
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/DynamicQR/Inquiry"
payload := strings.NewReader("{\n \"ActorInfo\": {\n \"CountryCode\": \"US\",\n \"Id\": 2001505522,\n \"MerchantId\": \"123456789\",\n \"Name\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"Currency\": \"ILS\",\n \"MachineAuTime\": \"230221101008\",\n \"SiteId\": 1,\n \"TransactionId\": \"236584335969834429321847829253667359\"\n },\n \"CustomData\": {\n \"Actor\": \"\",\n \"Machine\": {\n \"dynamic_qr_channels_rec_ids\": \"8,19\"\n }\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.12-RC1 - Sep 22 2020\",\n \"HwSerial\": 434324119376524,\n \"Id\": 0,\n \"Type\": \"ONYX\"\n },\n \"MachineInfo\": {\n \"Address\": \"TestPayDynamicQR V2\",\n \"City\": \"Abbeville\",\n \"Country\": \"UNITED STATES\",\n \"CountryCode\": \"US\",\n \"CountryISOCode\": \"USA\",\n \"DecimalPlace\": 2,\n \"Id\": 869761713,\n \"Name\": \"TestPayDynamicQR V2\",\n \"Offset\": \"2.00\",\n \"TerminalId\": \"987654321\",\n \"ZipCode\": \"1223311\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 0.1,\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 0,\n \"SrvTranId\": \"236584335969834429321847829253667359\"\n },\n \"Polling\": {\n \"IsLastPolling\": false,\n \"PollingAttemptCounter\": 30\n },\n \"Products\": [\n {\n \"Code\": 11,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"Unit\"\n }\n ]\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/DynamicQR/Inquiry")
.header("Content-Type", "application/*+json")
.body("{\n \"ActorInfo\": {\n \"CountryCode\": \"US\",\n \"Id\": 2001505522,\n \"MerchantId\": \"123456789\",\n \"Name\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"Currency\": \"ILS\",\n \"MachineAuTime\": \"230221101008\",\n \"SiteId\": 1,\n \"TransactionId\": \"236584335969834429321847829253667359\"\n },\n \"CustomData\": {\n \"Actor\": \"\",\n \"Machine\": {\n \"dynamic_qr_channels_rec_ids\": \"8,19\"\n }\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.12-RC1 - Sep 22 2020\",\n \"HwSerial\": 434324119376524,\n \"Id\": 0,\n \"Type\": \"ONYX\"\n },\n \"MachineInfo\": {\n \"Address\": \"TestPayDynamicQR V2\",\n \"City\": \"Abbeville\",\n \"Country\": \"UNITED STATES\",\n \"CountryCode\": \"US\",\n \"CountryISOCode\": \"USA\",\n \"DecimalPlace\": 2,\n \"Id\": 869761713,\n \"Name\": \"TestPayDynamicQR V2\",\n \"Offset\": \"2.00\",\n \"TerminalId\": \"987654321\",\n \"ZipCode\": \"1223311\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 0.1,\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 0,\n \"SrvTranId\": \"236584335969834429321847829253667359\"\n },\n \"Polling\": {\n \"IsLastPolling\": false,\n \"PollingAttemptCounter\": 30\n },\n \"Products\": [\n {\n \"Code\": 11,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"Unit\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/DynamicQR/Inquiry")
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 \"CountryCode\": \"US\",\n \"Id\": 2001505522,\n \"MerchantId\": \"123456789\",\n \"Name\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"Currency\": \"ILS\",\n \"MachineAuTime\": \"230221101008\",\n \"SiteId\": 1,\n \"TransactionId\": \"236584335969834429321847829253667359\"\n },\n \"CustomData\": {\n \"Actor\": \"\",\n \"Machine\": {\n \"dynamic_qr_channels_rec_ids\": \"8,19\"\n }\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.12-RC1 - Sep 22 2020\",\n \"HwSerial\": 434324119376524,\n \"Id\": 0,\n \"Type\": \"ONYX\"\n },\n \"MachineInfo\": {\n \"Address\": \"TestPayDynamicQR V2\",\n \"City\": \"Abbeville\",\n \"Country\": \"UNITED STATES\",\n \"CountryCode\": \"US\",\n \"CountryISOCode\": \"USA\",\n \"DecimalPlace\": 2,\n \"Id\": 869761713,\n \"Name\": \"TestPayDynamicQR V2\",\n \"Offset\": \"2.00\",\n \"TerminalId\": \"987654321\",\n \"ZipCode\": \"1223311\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 0.1,\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 0,\n \"SrvTranId\": \"236584335969834429321847829253667359\"\n },\n \"Polling\": {\n \"IsLastPolling\": false,\n \"PollingAttemptCounter\": 30\n },\n \"Products\": [\n {\n \"Code\": 11,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"Unit\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"PaymentInfo": {
"AdditionalData": "",
"AuthAmount": 0.1,
"AuthCode": "333333",
"AuthDateTime": "230221101008",
"AuthSource": "555555",
"SettAmount": 0.1,
"SettDateTime": "230221101009",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
},
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}Cortina DynamicQR Inquiry
curl --request POST \
--url https://{domain}:{port}/Cortina/DynamicQR/Inquiry \
--header 'Content-Type: application/*+json' \
--data '
{
"ActorInfo": {
"CountryCode": "US",
"Id": 2001505522,
"MerchantId": "123456789",
"Name": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"Currency": "ILS",
"MachineAuTime": "230221101008",
"SiteId": 1,
"TransactionId": "236584335969834429321847829253667359"
},
"CustomData": {
"Actor": "",
"Machine": {
"dynamic_qr_channels_rec_ids": "8,19"
}
},
"DeviceInfo": {
"FWVersion": "4.0.0.12-RC1 - Sep 22 2020",
"HwSerial": 434324119376524,
"Id": 0,
"Type": "ONYX"
},
"MachineInfo": {
"Address": "TestPayDynamicQR V2",
"City": "Abbeville",
"Country": "UNITED STATES",
"CountryCode": "US",
"CountryISOCode": "USA",
"DecimalPlace": 2,
"Id": 869761713,
"Name": "TestPayDynamicQR V2",
"Offset": "2.00",
"TerminalId": "987654321",
"ZipCode": "1223311"
},
"PaymentInfo": {
"AuthAmount": 0.1,
"IsGatewayTimeout": false,
"RRN": "111111",
"SettAmount": 0,
"SrvTranId": "236584335969834429321847829253667359"
},
"Polling": {
"IsLastPolling": false,
"PollingAttemptCounter": 30
},
"Products": [
{
"Code": 11,
"Measurement": 1,
"Name": "Stella",
"Price": 0.1,
"UnitOfMeasurement": "Unit"
}
]
}
'import requests
url = "https://{domain}:{port}/Cortina/DynamicQR/Inquiry"
payload = {
"ActorInfo": {
"CountryCode": "US",
"Id": 2001505522,
"MerchantId": "123456789",
"Name": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"Currency": "ILS",
"MachineAuTime": "230221101008",
"SiteId": 1,
"TransactionId": "236584335969834429321847829253667359"
},
"CustomData": {
"Actor": "",
"Machine": { "dynamic_qr_channels_rec_ids": "8,19" }
},
"DeviceInfo": {
"FWVersion": "4.0.0.12-RC1 - Sep 22 2020",
"HwSerial": 434324119376524,
"Id": 0,
"Type": "ONYX"
},
"MachineInfo": {
"Address": "TestPayDynamicQR V2",
"City": "Abbeville",
"Country": "UNITED STATES",
"CountryCode": "US",
"CountryISOCode": "USA",
"DecimalPlace": 2,
"Id": 869761713,
"Name": "TestPayDynamicQR V2",
"Offset": "2.00",
"TerminalId": "987654321",
"ZipCode": "1223311"
},
"PaymentInfo": {
"AuthAmount": 0.1,
"IsGatewayTimeout": False,
"RRN": "111111",
"SettAmount": 0,
"SrvTranId": "236584335969834429321847829253667359"
},
"Polling": {
"IsLastPolling": False,
"PollingAttemptCounter": 30
},
"Products": [
{
"Code": 11,
"Measurement": 1,
"Name": "Stella",
"Price": 0.1,
"UnitOfMeasurement": "Unit"
}
]
}
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: {CountryCode: 'US', Id: 2001505522, MerchantId: '123456789', Name: 'TanyaT_OP'},
BasicInfo: {
Amount: 0.1,
Currency: 'ILS',
MachineAuTime: '230221101008',
SiteId: 1,
TransactionId: '236584335969834429321847829253667359'
},
CustomData: {Actor: '', Machine: {dynamic_qr_channels_rec_ids: '8,19'}},
DeviceInfo: {
FWVersion: '4.0.0.12-RC1 - Sep 22 2020',
HwSerial: 434324119376524,
Id: 0,
Type: 'ONYX'
},
MachineInfo: {
Address: 'TestPayDynamicQR V2',
City: 'Abbeville',
Country: 'UNITED STATES',
CountryCode: 'US',
CountryISOCode: 'USA',
DecimalPlace: 2,
Id: 869761713,
Name: 'TestPayDynamicQR V2',
Offset: '2.00',
TerminalId: '987654321',
ZipCode: '1223311'
},
PaymentInfo: {
AuthAmount: 0.1,
IsGatewayTimeout: false,
RRN: '111111',
SettAmount: 0,
SrvTranId: '236584335969834429321847829253667359'
},
Polling: {IsLastPolling: false, PollingAttemptCounter: 30},
Products: [
{
Code: 11,
Measurement: 1,
Name: 'Stella',
Price: 0.1,
UnitOfMeasurement: 'Unit'
}
]
})
};
fetch('https://{domain}:{port}/Cortina/DynamicQR/Inquiry', 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/DynamicQR/Inquiry",
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' => [
'CountryCode' => 'US',
'Id' => 2001505522,
'MerchantId' => '123456789',
'Name' => 'TanyaT_OP'
],
'BasicInfo' => [
'Amount' => 0.1,
'Currency' => 'ILS',
'MachineAuTime' => '230221101008',
'SiteId' => 1,
'TransactionId' => '236584335969834429321847829253667359'
],
'CustomData' => [
'Actor' => '',
'Machine' => [
'dynamic_qr_channels_rec_ids' => '8,19'
]
],
'DeviceInfo' => [
'FWVersion' => '4.0.0.12-RC1 - Sep 22 2020',
'HwSerial' => 434324119376524,
'Id' => 0,
'Type' => 'ONYX'
],
'MachineInfo' => [
'Address' => 'TestPayDynamicQR V2',
'City' => 'Abbeville',
'Country' => 'UNITED STATES',
'CountryCode' => 'US',
'CountryISOCode' => 'USA',
'DecimalPlace' => 2,
'Id' => 869761713,
'Name' => 'TestPayDynamicQR V2',
'Offset' => '2.00',
'TerminalId' => '987654321',
'ZipCode' => '1223311'
],
'PaymentInfo' => [
'AuthAmount' => 0.1,
'IsGatewayTimeout' => false,
'RRN' => '111111',
'SettAmount' => 0,
'SrvTranId' => '236584335969834429321847829253667359'
],
'Polling' => [
'IsLastPolling' => false,
'PollingAttemptCounter' => 30
],
'Products' => [
[
'Code' => 11,
'Measurement' => 1,
'Name' => 'Stella',
'Price' => 0.1,
'UnitOfMeasurement' => 'Unit'
]
]
]),
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/DynamicQR/Inquiry"
payload := strings.NewReader("{\n \"ActorInfo\": {\n \"CountryCode\": \"US\",\n \"Id\": 2001505522,\n \"MerchantId\": \"123456789\",\n \"Name\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"Currency\": \"ILS\",\n \"MachineAuTime\": \"230221101008\",\n \"SiteId\": 1,\n \"TransactionId\": \"236584335969834429321847829253667359\"\n },\n \"CustomData\": {\n \"Actor\": \"\",\n \"Machine\": {\n \"dynamic_qr_channels_rec_ids\": \"8,19\"\n }\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.12-RC1 - Sep 22 2020\",\n \"HwSerial\": 434324119376524,\n \"Id\": 0,\n \"Type\": \"ONYX\"\n },\n \"MachineInfo\": {\n \"Address\": \"TestPayDynamicQR V2\",\n \"City\": \"Abbeville\",\n \"Country\": \"UNITED STATES\",\n \"CountryCode\": \"US\",\n \"CountryISOCode\": \"USA\",\n \"DecimalPlace\": 2,\n \"Id\": 869761713,\n \"Name\": \"TestPayDynamicQR V2\",\n \"Offset\": \"2.00\",\n \"TerminalId\": \"987654321\",\n \"ZipCode\": \"1223311\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 0.1,\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 0,\n \"SrvTranId\": \"236584335969834429321847829253667359\"\n },\n \"Polling\": {\n \"IsLastPolling\": false,\n \"PollingAttemptCounter\": 30\n },\n \"Products\": [\n {\n \"Code\": 11,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"Unit\"\n }\n ]\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/DynamicQR/Inquiry")
.header("Content-Type", "application/*+json")
.body("{\n \"ActorInfo\": {\n \"CountryCode\": \"US\",\n \"Id\": 2001505522,\n \"MerchantId\": \"123456789\",\n \"Name\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"Currency\": \"ILS\",\n \"MachineAuTime\": \"230221101008\",\n \"SiteId\": 1,\n \"TransactionId\": \"236584335969834429321847829253667359\"\n },\n \"CustomData\": {\n \"Actor\": \"\",\n \"Machine\": {\n \"dynamic_qr_channels_rec_ids\": \"8,19\"\n }\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.12-RC1 - Sep 22 2020\",\n \"HwSerial\": 434324119376524,\n \"Id\": 0,\n \"Type\": \"ONYX\"\n },\n \"MachineInfo\": {\n \"Address\": \"TestPayDynamicQR V2\",\n \"City\": \"Abbeville\",\n \"Country\": \"UNITED STATES\",\n \"CountryCode\": \"US\",\n \"CountryISOCode\": \"USA\",\n \"DecimalPlace\": 2,\n \"Id\": 869761713,\n \"Name\": \"TestPayDynamicQR V2\",\n \"Offset\": \"2.00\",\n \"TerminalId\": \"987654321\",\n \"ZipCode\": \"1223311\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 0.1,\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 0,\n \"SrvTranId\": \"236584335969834429321847829253667359\"\n },\n \"Polling\": {\n \"IsLastPolling\": false,\n \"PollingAttemptCounter\": 30\n },\n \"Products\": [\n {\n \"Code\": 11,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"Unit\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/DynamicQR/Inquiry")
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 \"CountryCode\": \"US\",\n \"Id\": 2001505522,\n \"MerchantId\": \"123456789\",\n \"Name\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"Currency\": \"ILS\",\n \"MachineAuTime\": \"230221101008\",\n \"SiteId\": 1,\n \"TransactionId\": \"236584335969834429321847829253667359\"\n },\n \"CustomData\": {\n \"Actor\": \"\",\n \"Machine\": {\n \"dynamic_qr_channels_rec_ids\": \"8,19\"\n }\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.12-RC1 - Sep 22 2020\",\n \"HwSerial\": 434324119376524,\n \"Id\": 0,\n \"Type\": \"ONYX\"\n },\n \"MachineInfo\": {\n \"Address\": \"TestPayDynamicQR V2\",\n \"City\": \"Abbeville\",\n \"Country\": \"UNITED STATES\",\n \"CountryCode\": \"US\",\n \"CountryISOCode\": \"USA\",\n \"DecimalPlace\": 2,\n \"Id\": 869761713,\n \"Name\": \"TestPayDynamicQR V2\",\n \"Offset\": \"2.00\",\n \"TerminalId\": \"987654321\",\n \"ZipCode\": \"1223311\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 0.1,\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 0,\n \"SrvTranId\": \"236584335969834429321847829253667359\"\n },\n \"Polling\": {\n \"IsLastPolling\": false,\n \"PollingAttemptCounter\": 30\n },\n \"Products\": [\n {\n \"Code\": 11,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"Unit\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"PaymentInfo": {
"AdditionalData": "",
"AuthAmount": 0.1,
"AuthCode": "333333",
"AuthDateTime": "230221101008",
"AuthSource": "555555",
"SettAmount": 0.1,
"SettDateTime": "230221101009",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
},
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"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
Hardware and firmware information of the Nayax device.
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 Polling Information
Show child attributes
Show child attributes
Show child attributes
Show child attributes
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
Use 993 to keep polling. See status description for more info
Show child attributes
Show child attributes
Was this page helpful?