Cortina DynamicQR GenerateQR
curl --request POST \
--url https://{domain}:{port}/Cortina/DynamicQR/GenerateQR \
--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,"
},
"ChannelId": 19,
"CustomData": {
"Actor": 12312312,
"DirectActor": 12312312,
"Distributor": "superDistributor",
"Machine": 131231348,
"Operator": 123121434134
},
"DeviceInfo": null,
"MachineInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "United States of America",
"NumericCode": 840
},
"DecimalPlace": 2,
"GroupId": "Beverages",
"Id": 869761713,
"Name": "TestPayDynamicQR V2",
"Offset": 2,
"OperatorId": 12345,
"TerminalId": 987654321,
"ZipCode": 10001
},
"Product": [
{
"Code": 11,
"Measurement": 1,
"Name": "Stella",
"Price": 0.1,
"UnitOfMeasurement": "USD"
},
{
"Code": 456,
"Measurement": 0,
"Name": "expensiveSprite",
"Price": 600,
"UnitOfMeasurement": "USD"
}
]
}
'import requests
url = "https://{domain}:{port}/Cortina/DynamicQR/GenerateQR"
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,"
},
"ChannelId": 19,
"CustomData": {
"Actor": 12312312,
"DirectActor": 12312312,
"Distributor": "superDistributor",
"Machine": 131231348,
"Operator": 123121434134
},
"DeviceInfo": None,
"MachineInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "United States of America",
"NumericCode": 840
},
"DecimalPlace": 2,
"GroupId": "Beverages",
"Id": 869761713,
"Name": "TestPayDynamicQR V2",
"Offset": 2,
"OperatorId": 12345,
"TerminalId": 987654321,
"ZipCode": 10001
},
"Product": [
{
"Code": 11,
"Measurement": 1,
"Name": "Stella",
"Price": 0.1,
"UnitOfMeasurement": "USD"
},
{
"Code": 456,
"Measurement": 0,
"Name": "expensiveSprite",
"Price": 600,
"UnitOfMeasurement": "USD"
}
]
}
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,'
},
ChannelId: 19,
CustomData: {
Actor: 12312312,
DirectActor: 12312312,
Distributor: 'superDistributor',
Machine: 131231348,
Operator: 123121434134
},
DeviceInfo: null,
MachineInfo: {
Country: {
Alpha2Code: 'US',
Alpha3Code: 'USA',
Name: 'United States of America',
NumericCode: 840
},
DecimalPlace: 2,
GroupId: 'Beverages',
Id: 869761713,
Name: 'TestPayDynamicQR V2',
Offset: 2,
OperatorId: 12345,
TerminalId: 987654321,
ZipCode: 10001
},
Product: [
{Code: 11, Measurement: 1, Name: 'Stella', Price: 0.1, UnitOfMeasurement: 'USD'},
{
Code: 456,
Measurement: 0,
Name: 'expensiveSprite',
Price: 600,
UnitOfMeasurement: 'USD'
}
]
})
};
fetch('https://{domain}:{port}/Cortina/DynamicQR/GenerateQR', 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/GenerateQR",
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,'
],
'ChannelId' => 19,
'CustomData' => [
'Actor' => 12312312,
'DirectActor' => 12312312,
'Distributor' => 'superDistributor',
'Machine' => 131231348,
'Operator' => 123121434134
],
'DeviceInfo' => null,
'MachineInfo' => [
'Country' => [
'Alpha2Code' => 'US',
'Alpha3Code' => 'USA',
'Name' => 'United States of America',
'NumericCode' => 840
],
'DecimalPlace' => 2,
'GroupId' => 'Beverages',
'Id' => 869761713,
'Name' => 'TestPayDynamicQR V2',
'Offset' => 2,
'OperatorId' => 12345,
'TerminalId' => 987654321,
'ZipCode' => 10001
],
'Product' => [
[
'Code' => 11,
'Measurement' => 1,
'Name' => 'Stella',
'Price' => 0.1,
'UnitOfMeasurement' => 'USD'
],
[
'Code' => 456,
'Measurement' => 0,
'Name' => 'expensiveSprite',
'Price' => 600,
'UnitOfMeasurement' => 'USD'
]
]
]),
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/GenerateQR"
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 \"ChannelId\": 19,\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"DeviceInfo\": null,\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\": \"TestPayDynamicQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n },\n \"Product\": [\n {\n \"Code\": 11,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"USD\"\n },\n {\n \"Code\": 456,\n \"Measurement\": 0,\n \"Name\": \"expensiveSprite\",\n \"Price\": 600,\n \"UnitOfMeasurement\": \"USD\"\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/GenerateQR")
.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 \"ChannelId\": 19,\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"DeviceInfo\": null,\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\": \"TestPayDynamicQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n },\n \"Product\": [\n {\n \"Code\": 11,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"USD\"\n },\n {\n \"Code\": 456,\n \"Measurement\": 0,\n \"Name\": \"expensiveSprite\",\n \"Price\": 600,\n \"UnitOfMeasurement\": \"USD\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/DynamicQR/GenerateQR")
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 \"ChannelId\": 19,\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"DeviceInfo\": null,\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\": \"TestPayDynamicQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n },\n \"Product\": [\n {\n \"Code\": 11,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"USD\"\n },\n {\n \"Code\": 456,\n \"Measurement\": 0,\n \"Name\": \"expensiveSprite\",\n \"Price\": 600,\n \"UnitOfMeasurement\": \"USD\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"QRCode": "DynamicQrResponse_QRCode_Test",
"QRData": {
"ChannelId": "19",
"RRN": "111111",
"SrvTranId": "236584335969834429321847829253667359"
},
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
},
"additionalProperties": false
}DynamicQR
Cortina DynamicQR GenerateQR
Cortina DynamicQR GenerateQR
curl --request POST \
--url https://{domain}:{port}/Cortina/DynamicQR/GenerateQR \
--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,"
},
"ChannelId": 19,
"CustomData": {
"Actor": 12312312,
"DirectActor": 12312312,
"Distributor": "superDistributor",
"Machine": 131231348,
"Operator": 123121434134
},
"DeviceInfo": null,
"MachineInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "United States of America",
"NumericCode": 840
},
"DecimalPlace": 2,
"GroupId": "Beverages",
"Id": 869761713,
"Name": "TestPayDynamicQR V2",
"Offset": 2,
"OperatorId": 12345,
"TerminalId": 987654321,
"ZipCode": 10001
},
"Product": [
{
"Code": 11,
"Measurement": 1,
"Name": "Stella",
"Price": 0.1,
"UnitOfMeasurement": "USD"
},
{
"Code": 456,
"Measurement": 0,
"Name": "expensiveSprite",
"Price": 600,
"UnitOfMeasurement": "USD"
}
]
}
'import requests
url = "https://{domain}:{port}/Cortina/DynamicQR/GenerateQR"
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,"
},
"ChannelId": 19,
"CustomData": {
"Actor": 12312312,
"DirectActor": 12312312,
"Distributor": "superDistributor",
"Machine": 131231348,
"Operator": 123121434134
},
"DeviceInfo": None,
"MachineInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "United States of America",
"NumericCode": 840
},
"DecimalPlace": 2,
"GroupId": "Beverages",
"Id": 869761713,
"Name": "TestPayDynamicQR V2",
"Offset": 2,
"OperatorId": 12345,
"TerminalId": 987654321,
"ZipCode": 10001
},
"Product": [
{
"Code": 11,
"Measurement": 1,
"Name": "Stella",
"Price": 0.1,
"UnitOfMeasurement": "USD"
},
{
"Code": 456,
"Measurement": 0,
"Name": "expensiveSprite",
"Price": 600,
"UnitOfMeasurement": "USD"
}
]
}
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,'
},
ChannelId: 19,
CustomData: {
Actor: 12312312,
DirectActor: 12312312,
Distributor: 'superDistributor',
Machine: 131231348,
Operator: 123121434134
},
DeviceInfo: null,
MachineInfo: {
Country: {
Alpha2Code: 'US',
Alpha3Code: 'USA',
Name: 'United States of America',
NumericCode: 840
},
DecimalPlace: 2,
GroupId: 'Beverages',
Id: 869761713,
Name: 'TestPayDynamicQR V2',
Offset: 2,
OperatorId: 12345,
TerminalId: 987654321,
ZipCode: 10001
},
Product: [
{Code: 11, Measurement: 1, Name: 'Stella', Price: 0.1, UnitOfMeasurement: 'USD'},
{
Code: 456,
Measurement: 0,
Name: 'expensiveSprite',
Price: 600,
UnitOfMeasurement: 'USD'
}
]
})
};
fetch('https://{domain}:{port}/Cortina/DynamicQR/GenerateQR', 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/GenerateQR",
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,'
],
'ChannelId' => 19,
'CustomData' => [
'Actor' => 12312312,
'DirectActor' => 12312312,
'Distributor' => 'superDistributor',
'Machine' => 131231348,
'Operator' => 123121434134
],
'DeviceInfo' => null,
'MachineInfo' => [
'Country' => [
'Alpha2Code' => 'US',
'Alpha3Code' => 'USA',
'Name' => 'United States of America',
'NumericCode' => 840
],
'DecimalPlace' => 2,
'GroupId' => 'Beverages',
'Id' => 869761713,
'Name' => 'TestPayDynamicQR V2',
'Offset' => 2,
'OperatorId' => 12345,
'TerminalId' => 987654321,
'ZipCode' => 10001
],
'Product' => [
[
'Code' => 11,
'Measurement' => 1,
'Name' => 'Stella',
'Price' => 0.1,
'UnitOfMeasurement' => 'USD'
],
[
'Code' => 456,
'Measurement' => 0,
'Name' => 'expensiveSprite',
'Price' => 600,
'UnitOfMeasurement' => 'USD'
]
]
]),
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/GenerateQR"
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 \"ChannelId\": 19,\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"DeviceInfo\": null,\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\": \"TestPayDynamicQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n },\n \"Product\": [\n {\n \"Code\": 11,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"USD\"\n },\n {\n \"Code\": 456,\n \"Measurement\": 0,\n \"Name\": \"expensiveSprite\",\n \"Price\": 600,\n \"UnitOfMeasurement\": \"USD\"\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/GenerateQR")
.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 \"ChannelId\": 19,\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"DeviceInfo\": null,\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\": \"TestPayDynamicQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n },\n \"Product\": [\n {\n \"Code\": 11,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"USD\"\n },\n {\n \"Code\": 456,\n \"Measurement\": 0,\n \"Name\": \"expensiveSprite\",\n \"Price\": 600,\n \"UnitOfMeasurement\": \"USD\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/DynamicQR/GenerateQR")
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 \"ChannelId\": 19,\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"DeviceInfo\": null,\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\": \"TestPayDynamicQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n },\n \"Product\": [\n {\n \"Code\": 11,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"USD\"\n },\n {\n \"Code\": 456,\n \"Measurement\": 0,\n \"Name\": \"expensiveSprite\",\n \"Price\": 600,\n \"UnitOfMeasurement\": \"USD\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"QRCode": "DynamicQrResponse_QRCode_Test",
"QRData": {
"ChannelId": "19",
"RRN": "111111",
"SrvTranId": "236584335969834429321847829253667359"
},
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
},
"additionalProperties": false
}Generates a QR code for the customer to scan. This endpoint receives transaction details (such as the amount and machine ID) and generates the specific QR code data to be displayed on the payment terminal screen for the user to scan.
Body
application/*+jsonapplication/jsontext/json
Merchant (Actor) details.
Show child attributes
Show child attributes
Basic transaction information.
Show child attributes
Show child attributes
- Conditional, for Multi-channel integration, Contact Nayax TPOC to define.
- Channel Values shall be provided by Nayax, and cannot be altered.
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
Show child attributes
Show child attributes
Was this page helpful?
⌘I