curl --request POST \
--url https://{domain}:{port}/Cortina/Prepaid/Authorization \
--header 'Content-Type: application/*+json' \
--data '
{
"DeviceInfo": {
"FWVersion": "4.0.0.22-RC01 - Aug 25 2021",
"HwSerial": 434324119376526,
"Type": "Onyx"
},
"MachineInfo": {
"City": "Abbeville",
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Intra": "Europe",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DecimalPlace": 2,
"ExternalId": "OperatorExternalID",
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"Latitude": 51.0003431,
"Longitude": 23.745245,
"State": "Alabama",
"ZipCode": "234234"
},
"GroupId": "String",
"Id": 106791869,
"Name": "Itai_TestPayCC V2",
"Offset": "3.00",
"OperatorId": 2001537302,
"Region": "EU",
"TerminalId": "8888888844",
"Type": "machine type",
"ZipCode": "22448Z"
},
"ActorInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Intra": "Europe",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DynamicURL": "https://www.nayax.com/alternativeURL",
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"Latitude": 51.0003431,
"Longitude": 23.745245,
"State": "Alabama",
"ZipCode": "234234"
},
"Id": 2001537302,
"MCC": 455,
"MerchantId": 999999888885,
"Name": "TestPayCC V2 OP",
"OperatorId": 2001537302,
"OperatorName": "TestPayCC V2 OP _ Sub Merchant",
"SubMerchantId": 999999888886
},
"CustomData": {
"Actor": "String",
"DirectActor": "String",
"Distributor": "String",
"Machine": "String",
"Operator": "String",
"SoftDecline": "String"
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "VISA",
"PrimaryId": "6",
"SecondaryDescription": "string",
"SecondaryId": "0"
},
"CVV2": "****",
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EMVData": "string",
"EntryMode": "MCR",
"ExpMonth": "01",
"ExpYear": "23",
"IDNumber": "****",
"IsDebitCard": true,
"RandomNumber": "string"
},
"PaymentInfo": {
"SrvTranId": "3584697388",
"AuthCode": "333333",
"AuthAmount": 5.5,
"SettAmount": 5.5,
"RRN": "111111",
"Token": "string",
"AuthDateTime": "071221133300",
"SettDateTime": "071221133330",
"TraceNumber": "4444",
"AdditionalData": "string",
"IsGatewayTimeout": false,
"ProviderExternalData": "string",
"InitiateTranReference": 11223344,
"IsRevalueCard": false
}
}
'import requests
url = "https://{domain}:{port}/Cortina/Prepaid/Authorization"
payload = {
"DeviceInfo": {
"FWVersion": "4.0.0.22-RC01 - Aug 25 2021",
"HwSerial": 434324119376526,
"Type": "Onyx"
},
"MachineInfo": {
"City": "Abbeville",
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Intra": "Europe",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DecimalPlace": 2,
"ExternalId": "OperatorExternalID",
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"Latitude": 51.0003431,
"Longitude": 23.745245,
"State": "Alabama",
"ZipCode": "234234"
},
"GroupId": "String",
"Id": 106791869,
"Name": "Itai_TestPayCC V2",
"Offset": "3.00",
"OperatorId": 2001537302,
"Region": "EU",
"TerminalId": "8888888844",
"Type": "machine type",
"ZipCode": "22448Z"
},
"ActorInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Intra": "Europe",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DynamicURL": "https://www.nayax.com/alternativeURL",
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"Latitude": 51.0003431,
"Longitude": 23.745245,
"State": "Alabama",
"ZipCode": "234234"
},
"Id": 2001537302,
"MCC": 455,
"MerchantId": 999999888885,
"Name": "TestPayCC V2 OP",
"OperatorId": 2001537302,
"OperatorName": "TestPayCC V2 OP _ Sub Merchant",
"SubMerchantId": 999999888886
},
"CustomData": {
"Actor": "String",
"DirectActor": "String",
"Distributor": "String",
"Machine": "String",
"Operator": "String",
"SoftDecline": "String"
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "VISA",
"PrimaryId": "6",
"SecondaryDescription": "string",
"SecondaryId": "0"
},
"CVV2": "****",
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EMVData": "string",
"EntryMode": "MCR",
"ExpMonth": "01",
"ExpYear": "23",
"IDNumber": "****",
"IsDebitCard": True,
"RandomNumber": "string"
},
"PaymentInfo": {
"SrvTranId": "3584697388",
"AuthCode": "333333",
"AuthAmount": 5.5,
"SettAmount": 5.5,
"RRN": "111111",
"Token": "string",
"AuthDateTime": "071221133300",
"SettDateTime": "071221133330",
"TraceNumber": "4444",
"AdditionalData": "string",
"IsGatewayTimeout": False,
"ProviderExternalData": "string",
"InitiateTranReference": 11223344,
"IsRevalueCard": False
}
}
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({
DeviceInfo: {
FWVersion: '4.0.0.22-RC01 - Aug 25 2021',
HwSerial: 434324119376526,
Type: 'Onyx'
},
MachineInfo: {
City: 'Abbeville',
Country: {
Alpha2Code: 'US',
Alpha3Code: 'USA',
Intra: 'Europe',
Name: 'UNITED STATES',
NumericCode: '840'
},
DecimalPlace: 2,
ExternalId: 'OperatorExternalID',
GeoLocation: {
Address: 'River',
City: 'Zambezi',
CountryCode: 'ZM',
Latitude: 51.0003431,
Longitude: 23.745245,
State: 'Alabama',
ZipCode: '234234'
},
GroupId: 'String',
Id: 106791869,
Name: 'Itai_TestPayCC V2',
Offset: '3.00',
OperatorId: 2001537302,
Region: 'EU',
TerminalId: '8888888844',
Type: 'machine type',
ZipCode: '22448Z'
},
ActorInfo: {
Country: {
Alpha2Code: 'US',
Alpha3Code: 'USA',
Intra: 'Europe',
Name: 'UNITED STATES',
NumericCode: '840'
},
DynamicURL: 'https://www.nayax.com/alternativeURL',
GeoLocation: {
Address: 'River',
City: 'Zambezi',
CountryCode: 'ZM',
Latitude: 51.0003431,
Longitude: 23.745245,
State: 'Alabama',
ZipCode: '234234'
},
Id: 2001537302,
MCC: 455,
MerchantId: 999999888885,
Name: 'TestPayCC V2 OP',
OperatorId: 2001537302,
OperatorName: 'TestPayCC V2 OP _ Sub Merchant',
SubMerchantId: 999999888886
},
CustomData: {
Actor: 'String',
DirectActor: 'String',
Distributor: 'String',
Machine: 'String',
Operator: 'String',
SoftDecline: 'String'
},
CardData: {
BrandInfo: {
PrimaryDescription: 'VISA',
PrimaryId: '6',
SecondaryDescription: 'string',
SecondaryId: '0'
},
CVV2: '****',
CardHolderName: 'Test Card Holder',
CardNumber: '****',
EMVData: 'string',
EntryMode: 'MCR',
ExpMonth: '01',
ExpYear: '23',
IDNumber: '****',
IsDebitCard: true,
RandomNumber: 'string'
},
PaymentInfo: {
SrvTranId: '3584697388',
AuthCode: '333333',
AuthAmount: 5.5,
SettAmount: 5.5,
RRN: '111111',
Token: 'string',
AuthDateTime: '071221133300',
SettDateTime: '071221133330',
TraceNumber: '4444',
AdditionalData: 'string',
IsGatewayTimeout: false,
ProviderExternalData: 'string',
InitiateTranReference: 11223344,
IsRevalueCard: false
}
})
};
fetch('https://{domain}:{port}/Cortina/Prepaid/Authorization', 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/Prepaid/Authorization",
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([
'DeviceInfo' => [
'FWVersion' => '4.0.0.22-RC01 - Aug 25 2021',
'HwSerial' => 434324119376526,
'Type' => 'Onyx'
],
'MachineInfo' => [
'City' => 'Abbeville',
'Country' => [
'Alpha2Code' => 'US',
'Alpha3Code' => 'USA',
'Intra' => 'Europe',
'Name' => 'UNITED STATES',
'NumericCode' => '840'
],
'DecimalPlace' => 2,
'ExternalId' => 'OperatorExternalID',
'GeoLocation' => [
'Address' => 'River',
'City' => 'Zambezi',
'CountryCode' => 'ZM',
'Latitude' => 51.0003431,
'Longitude' => 23.745245,
'State' => 'Alabama',
'ZipCode' => '234234'
],
'GroupId' => 'String',
'Id' => 106791869,
'Name' => 'Itai_TestPayCC V2',
'Offset' => '3.00',
'OperatorId' => 2001537302,
'Region' => 'EU',
'TerminalId' => '8888888844',
'Type' => 'machine type',
'ZipCode' => '22448Z'
],
'ActorInfo' => [
'Country' => [
'Alpha2Code' => 'US',
'Alpha3Code' => 'USA',
'Intra' => 'Europe',
'Name' => 'UNITED STATES',
'NumericCode' => '840'
],
'DynamicURL' => 'https://www.nayax.com/alternativeURL',
'GeoLocation' => [
'Address' => 'River',
'City' => 'Zambezi',
'CountryCode' => 'ZM',
'Latitude' => 51.0003431,
'Longitude' => 23.745245,
'State' => 'Alabama',
'ZipCode' => '234234'
],
'Id' => 2001537302,
'MCC' => 455,
'MerchantId' => 999999888885,
'Name' => 'TestPayCC V2 OP',
'OperatorId' => 2001537302,
'OperatorName' => 'TestPayCC V2 OP _ Sub Merchant',
'SubMerchantId' => 999999888886
],
'CustomData' => [
'Actor' => 'String',
'DirectActor' => 'String',
'Distributor' => 'String',
'Machine' => 'String',
'Operator' => 'String',
'SoftDecline' => 'String'
],
'CardData' => [
'BrandInfo' => [
'PrimaryDescription' => 'VISA',
'PrimaryId' => '6',
'SecondaryDescription' => 'string',
'SecondaryId' => '0'
],
'CVV2' => '****',
'CardHolderName' => 'Test Card Holder',
'CardNumber' => '****',
'EMVData' => 'string',
'EntryMode' => 'MCR',
'ExpMonth' => '01',
'ExpYear' => '23',
'IDNumber' => '****',
'IsDebitCard' => true,
'RandomNumber' => 'string'
],
'PaymentInfo' => [
'SrvTranId' => '3584697388',
'AuthCode' => '333333',
'AuthAmount' => 5.5,
'SettAmount' => 5.5,
'RRN' => '111111',
'Token' => 'string',
'AuthDateTime' => '071221133300',
'SettDateTime' => '071221133330',
'TraceNumber' => '4444',
'AdditionalData' => 'string',
'IsGatewayTimeout' => false,
'ProviderExternalData' => 'string',
'InitiateTranReference' => 11223344,
'IsRevalueCard' => false
]
]),
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/Prepaid/Authorization"
payload := strings.NewReader("{\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.22-RC01 - Aug 25 2021\",\n \"HwSerial\": 434324119376526,\n \"Type\": \"Onyx\"\n },\n \"MachineInfo\": {\n \"City\": \"Abbeville\",\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Intra\": \"Europe\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DecimalPlace\": 2,\n \"ExternalId\": \"OperatorExternalID\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"Latitude\": 51.0003431,\n \"Longitude\": 23.745245,\n \"State\": \"Alabama\",\n \"ZipCode\": \"234234\"\n },\n \"GroupId\": \"String\",\n \"Id\": 106791869,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"OperatorId\": 2001537302,\n \"Region\": \"EU\",\n \"TerminalId\": \"8888888844\",\n \"Type\": \"machine type\",\n \"ZipCode\": \"22448Z\"\n },\n \"ActorInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Intra\": \"Europe\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DynamicURL\": \"https://www.nayax.com/alternativeURL\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"Latitude\": 51.0003431,\n \"Longitude\": 23.745245,\n \"State\": \"Alabama\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 2001537302,\n \"MCC\": 455,\n \"MerchantId\": 999999888885,\n \"Name\": \"TestPayCC V2 OP\",\n \"OperatorId\": 2001537302,\n \"OperatorName\": \"TestPayCC V2 OP _ Sub Merchant\",\n \"SubMerchantId\": 999999888886\n },\n \"CustomData\": {\n \"Actor\": \"String\",\n \"DirectActor\": \"String\",\n \"Distributor\": \"String\",\n \"Machine\": \"String\",\n \"Operator\": \"String\",\n \"SoftDecline\": \"String\"\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"VISA\",\n \"PrimaryId\": \"6\",\n \"SecondaryDescription\": \"string\",\n \"SecondaryId\": \"0\"\n },\n \"CVV2\": \"****\",\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EMVData\": \"string\",\n \"EntryMode\": \"MCR\",\n \"ExpMonth\": \"01\",\n \"ExpYear\": \"23\",\n \"IDNumber\": \"****\",\n \"IsDebitCard\": true,\n \"RandomNumber\": \"string\"\n },\n \"PaymentInfo\": {\n \"SrvTranId\": \"3584697388\",\n \"AuthCode\": \"333333\",\n \"AuthAmount\": 5.5,\n \"SettAmount\": 5.5,\n \"RRN\": \"111111\",\n \"Token\": \"string\",\n \"AuthDateTime\": \"071221133300\",\n \"SettDateTime\": \"071221133330\",\n \"TraceNumber\": \"4444\",\n \"AdditionalData\": \"string\",\n \"IsGatewayTimeout\": false,\n \"ProviderExternalData\": \"string\",\n \"InitiateTranReference\": 11223344,\n \"IsRevalueCard\": false\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/Prepaid/Authorization")
.header("Content-Type", "application/*+json")
.body("{\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.22-RC01 - Aug 25 2021\",\n \"HwSerial\": 434324119376526,\n \"Type\": \"Onyx\"\n },\n \"MachineInfo\": {\n \"City\": \"Abbeville\",\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Intra\": \"Europe\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DecimalPlace\": 2,\n \"ExternalId\": \"OperatorExternalID\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"Latitude\": 51.0003431,\n \"Longitude\": 23.745245,\n \"State\": \"Alabama\",\n \"ZipCode\": \"234234\"\n },\n \"GroupId\": \"String\",\n \"Id\": 106791869,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"OperatorId\": 2001537302,\n \"Region\": \"EU\",\n \"TerminalId\": \"8888888844\",\n \"Type\": \"machine type\",\n \"ZipCode\": \"22448Z\"\n },\n \"ActorInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Intra\": \"Europe\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DynamicURL\": \"https://www.nayax.com/alternativeURL\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"Latitude\": 51.0003431,\n \"Longitude\": 23.745245,\n \"State\": \"Alabama\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 2001537302,\n \"MCC\": 455,\n \"MerchantId\": 999999888885,\n \"Name\": \"TestPayCC V2 OP\",\n \"OperatorId\": 2001537302,\n \"OperatorName\": \"TestPayCC V2 OP _ Sub Merchant\",\n \"SubMerchantId\": 999999888886\n },\n \"CustomData\": {\n \"Actor\": \"String\",\n \"DirectActor\": \"String\",\n \"Distributor\": \"String\",\n \"Machine\": \"String\",\n \"Operator\": \"String\",\n \"SoftDecline\": \"String\"\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"VISA\",\n \"PrimaryId\": \"6\",\n \"SecondaryDescription\": \"string\",\n \"SecondaryId\": \"0\"\n },\n \"CVV2\": \"****\",\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EMVData\": \"string\",\n \"EntryMode\": \"MCR\",\n \"ExpMonth\": \"01\",\n \"ExpYear\": \"23\",\n \"IDNumber\": \"****\",\n \"IsDebitCard\": true,\n \"RandomNumber\": \"string\"\n },\n \"PaymentInfo\": {\n \"SrvTranId\": \"3584697388\",\n \"AuthCode\": \"333333\",\n \"AuthAmount\": 5.5,\n \"SettAmount\": 5.5,\n \"RRN\": \"111111\",\n \"Token\": \"string\",\n \"AuthDateTime\": \"071221133300\",\n \"SettDateTime\": \"071221133330\",\n \"TraceNumber\": \"4444\",\n \"AdditionalData\": \"string\",\n \"IsGatewayTimeout\": false,\n \"ProviderExternalData\": \"string\",\n \"InitiateTranReference\": 11223344,\n \"IsRevalueCard\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/Prepaid/Authorization")
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 \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.22-RC01 - Aug 25 2021\",\n \"HwSerial\": 434324119376526,\n \"Type\": \"Onyx\"\n },\n \"MachineInfo\": {\n \"City\": \"Abbeville\",\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Intra\": \"Europe\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DecimalPlace\": 2,\n \"ExternalId\": \"OperatorExternalID\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"Latitude\": 51.0003431,\n \"Longitude\": 23.745245,\n \"State\": \"Alabama\",\n \"ZipCode\": \"234234\"\n },\n \"GroupId\": \"String\",\n \"Id\": 106791869,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"OperatorId\": 2001537302,\n \"Region\": \"EU\",\n \"TerminalId\": \"8888888844\",\n \"Type\": \"machine type\",\n \"ZipCode\": \"22448Z\"\n },\n \"ActorInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Intra\": \"Europe\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DynamicURL\": \"https://www.nayax.com/alternativeURL\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"Latitude\": 51.0003431,\n \"Longitude\": 23.745245,\n \"State\": \"Alabama\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 2001537302,\n \"MCC\": 455,\n \"MerchantId\": 999999888885,\n \"Name\": \"TestPayCC V2 OP\",\n \"OperatorId\": 2001537302,\n \"OperatorName\": \"TestPayCC V2 OP _ Sub Merchant\",\n \"SubMerchantId\": 999999888886\n },\n \"CustomData\": {\n \"Actor\": \"String\",\n \"DirectActor\": \"String\",\n \"Distributor\": \"String\",\n \"Machine\": \"String\",\n \"Operator\": \"String\",\n \"SoftDecline\": \"String\"\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"VISA\",\n \"PrimaryId\": \"6\",\n \"SecondaryDescription\": \"string\",\n \"SecondaryId\": \"0\"\n },\n \"CVV2\": \"****\",\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EMVData\": \"string\",\n \"EntryMode\": \"MCR\",\n \"ExpMonth\": \"01\",\n \"ExpYear\": \"23\",\n \"IDNumber\": \"****\",\n \"IsDebitCard\": true,\n \"RandomNumber\": \"string\"\n },\n \"PaymentInfo\": {\n \"SrvTranId\": \"3584697388\",\n \"AuthCode\": \"333333\",\n \"AuthAmount\": 5.5,\n \"SettAmount\": 5.5,\n \"RRN\": \"111111\",\n \"Token\": \"string\",\n \"AuthDateTime\": \"071221133300\",\n \"SettDateTime\": \"071221133330\",\n \"TraceNumber\": \"4444\",\n \"AdditionalData\": \"string\",\n \"IsGatewayTimeout\": false,\n \"ProviderExternalData\": \"string\",\n \"InitiateTranReference\": 11223344,\n \"IsRevalueCard\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"Balance": {
"RegularCredit": 0,
"RegularCreditType": 0,
"RevalueCredit": 0
},
"PaymentInfo": {
"AdditionalData": "string",
"AuthAmount": 0.1,
"AuthCode": 333333,
"AuthDateTime": 230221101008,
"AuthSource": 555555,
"IsGatewayTimeout": true,
"RRN": 111111,
"SettAmount": 0.1,
"SettDateTime": 230221101009,
"SrvTranId": 2.3658433596983443e+35,
"Token": "string",
"TraceNumber": 4444
},
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "string",
"Verdict": "Approved"
}
}Cortina Prepaid Authorization
curl --request POST \
--url https://{domain}:{port}/Cortina/Prepaid/Authorization \
--header 'Content-Type: application/*+json' \
--data '
{
"DeviceInfo": {
"FWVersion": "4.0.0.22-RC01 - Aug 25 2021",
"HwSerial": 434324119376526,
"Type": "Onyx"
},
"MachineInfo": {
"City": "Abbeville",
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Intra": "Europe",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DecimalPlace": 2,
"ExternalId": "OperatorExternalID",
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"Latitude": 51.0003431,
"Longitude": 23.745245,
"State": "Alabama",
"ZipCode": "234234"
},
"GroupId": "String",
"Id": 106791869,
"Name": "Itai_TestPayCC V2",
"Offset": "3.00",
"OperatorId": 2001537302,
"Region": "EU",
"TerminalId": "8888888844",
"Type": "machine type",
"ZipCode": "22448Z"
},
"ActorInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Intra": "Europe",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DynamicURL": "https://www.nayax.com/alternativeURL",
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"Latitude": 51.0003431,
"Longitude": 23.745245,
"State": "Alabama",
"ZipCode": "234234"
},
"Id": 2001537302,
"MCC": 455,
"MerchantId": 999999888885,
"Name": "TestPayCC V2 OP",
"OperatorId": 2001537302,
"OperatorName": "TestPayCC V2 OP _ Sub Merchant",
"SubMerchantId": 999999888886
},
"CustomData": {
"Actor": "String",
"DirectActor": "String",
"Distributor": "String",
"Machine": "String",
"Operator": "String",
"SoftDecline": "String"
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "VISA",
"PrimaryId": "6",
"SecondaryDescription": "string",
"SecondaryId": "0"
},
"CVV2": "****",
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EMVData": "string",
"EntryMode": "MCR",
"ExpMonth": "01",
"ExpYear": "23",
"IDNumber": "****",
"IsDebitCard": true,
"RandomNumber": "string"
},
"PaymentInfo": {
"SrvTranId": "3584697388",
"AuthCode": "333333",
"AuthAmount": 5.5,
"SettAmount": 5.5,
"RRN": "111111",
"Token": "string",
"AuthDateTime": "071221133300",
"SettDateTime": "071221133330",
"TraceNumber": "4444",
"AdditionalData": "string",
"IsGatewayTimeout": false,
"ProviderExternalData": "string",
"InitiateTranReference": 11223344,
"IsRevalueCard": false
}
}
'import requests
url = "https://{domain}:{port}/Cortina/Prepaid/Authorization"
payload = {
"DeviceInfo": {
"FWVersion": "4.0.0.22-RC01 - Aug 25 2021",
"HwSerial": 434324119376526,
"Type": "Onyx"
},
"MachineInfo": {
"City": "Abbeville",
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Intra": "Europe",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DecimalPlace": 2,
"ExternalId": "OperatorExternalID",
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"Latitude": 51.0003431,
"Longitude": 23.745245,
"State": "Alabama",
"ZipCode": "234234"
},
"GroupId": "String",
"Id": 106791869,
"Name": "Itai_TestPayCC V2",
"Offset": "3.00",
"OperatorId": 2001537302,
"Region": "EU",
"TerminalId": "8888888844",
"Type": "machine type",
"ZipCode": "22448Z"
},
"ActorInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Intra": "Europe",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DynamicURL": "https://www.nayax.com/alternativeURL",
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"Latitude": 51.0003431,
"Longitude": 23.745245,
"State": "Alabama",
"ZipCode": "234234"
},
"Id": 2001537302,
"MCC": 455,
"MerchantId": 999999888885,
"Name": "TestPayCC V2 OP",
"OperatorId": 2001537302,
"OperatorName": "TestPayCC V2 OP _ Sub Merchant",
"SubMerchantId": 999999888886
},
"CustomData": {
"Actor": "String",
"DirectActor": "String",
"Distributor": "String",
"Machine": "String",
"Operator": "String",
"SoftDecline": "String"
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "VISA",
"PrimaryId": "6",
"SecondaryDescription": "string",
"SecondaryId": "0"
},
"CVV2": "****",
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EMVData": "string",
"EntryMode": "MCR",
"ExpMonth": "01",
"ExpYear": "23",
"IDNumber": "****",
"IsDebitCard": True,
"RandomNumber": "string"
},
"PaymentInfo": {
"SrvTranId": "3584697388",
"AuthCode": "333333",
"AuthAmount": 5.5,
"SettAmount": 5.5,
"RRN": "111111",
"Token": "string",
"AuthDateTime": "071221133300",
"SettDateTime": "071221133330",
"TraceNumber": "4444",
"AdditionalData": "string",
"IsGatewayTimeout": False,
"ProviderExternalData": "string",
"InitiateTranReference": 11223344,
"IsRevalueCard": False
}
}
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({
DeviceInfo: {
FWVersion: '4.0.0.22-RC01 - Aug 25 2021',
HwSerial: 434324119376526,
Type: 'Onyx'
},
MachineInfo: {
City: 'Abbeville',
Country: {
Alpha2Code: 'US',
Alpha3Code: 'USA',
Intra: 'Europe',
Name: 'UNITED STATES',
NumericCode: '840'
},
DecimalPlace: 2,
ExternalId: 'OperatorExternalID',
GeoLocation: {
Address: 'River',
City: 'Zambezi',
CountryCode: 'ZM',
Latitude: 51.0003431,
Longitude: 23.745245,
State: 'Alabama',
ZipCode: '234234'
},
GroupId: 'String',
Id: 106791869,
Name: 'Itai_TestPayCC V2',
Offset: '3.00',
OperatorId: 2001537302,
Region: 'EU',
TerminalId: '8888888844',
Type: 'machine type',
ZipCode: '22448Z'
},
ActorInfo: {
Country: {
Alpha2Code: 'US',
Alpha3Code: 'USA',
Intra: 'Europe',
Name: 'UNITED STATES',
NumericCode: '840'
},
DynamicURL: 'https://www.nayax.com/alternativeURL',
GeoLocation: {
Address: 'River',
City: 'Zambezi',
CountryCode: 'ZM',
Latitude: 51.0003431,
Longitude: 23.745245,
State: 'Alabama',
ZipCode: '234234'
},
Id: 2001537302,
MCC: 455,
MerchantId: 999999888885,
Name: 'TestPayCC V2 OP',
OperatorId: 2001537302,
OperatorName: 'TestPayCC V2 OP _ Sub Merchant',
SubMerchantId: 999999888886
},
CustomData: {
Actor: 'String',
DirectActor: 'String',
Distributor: 'String',
Machine: 'String',
Operator: 'String',
SoftDecline: 'String'
},
CardData: {
BrandInfo: {
PrimaryDescription: 'VISA',
PrimaryId: '6',
SecondaryDescription: 'string',
SecondaryId: '0'
},
CVV2: '****',
CardHolderName: 'Test Card Holder',
CardNumber: '****',
EMVData: 'string',
EntryMode: 'MCR',
ExpMonth: '01',
ExpYear: '23',
IDNumber: '****',
IsDebitCard: true,
RandomNumber: 'string'
},
PaymentInfo: {
SrvTranId: '3584697388',
AuthCode: '333333',
AuthAmount: 5.5,
SettAmount: 5.5,
RRN: '111111',
Token: 'string',
AuthDateTime: '071221133300',
SettDateTime: '071221133330',
TraceNumber: '4444',
AdditionalData: 'string',
IsGatewayTimeout: false,
ProviderExternalData: 'string',
InitiateTranReference: 11223344,
IsRevalueCard: false
}
})
};
fetch('https://{domain}:{port}/Cortina/Prepaid/Authorization', 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/Prepaid/Authorization",
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([
'DeviceInfo' => [
'FWVersion' => '4.0.0.22-RC01 - Aug 25 2021',
'HwSerial' => 434324119376526,
'Type' => 'Onyx'
],
'MachineInfo' => [
'City' => 'Abbeville',
'Country' => [
'Alpha2Code' => 'US',
'Alpha3Code' => 'USA',
'Intra' => 'Europe',
'Name' => 'UNITED STATES',
'NumericCode' => '840'
],
'DecimalPlace' => 2,
'ExternalId' => 'OperatorExternalID',
'GeoLocation' => [
'Address' => 'River',
'City' => 'Zambezi',
'CountryCode' => 'ZM',
'Latitude' => 51.0003431,
'Longitude' => 23.745245,
'State' => 'Alabama',
'ZipCode' => '234234'
],
'GroupId' => 'String',
'Id' => 106791869,
'Name' => 'Itai_TestPayCC V2',
'Offset' => '3.00',
'OperatorId' => 2001537302,
'Region' => 'EU',
'TerminalId' => '8888888844',
'Type' => 'machine type',
'ZipCode' => '22448Z'
],
'ActorInfo' => [
'Country' => [
'Alpha2Code' => 'US',
'Alpha3Code' => 'USA',
'Intra' => 'Europe',
'Name' => 'UNITED STATES',
'NumericCode' => '840'
],
'DynamicURL' => 'https://www.nayax.com/alternativeURL',
'GeoLocation' => [
'Address' => 'River',
'City' => 'Zambezi',
'CountryCode' => 'ZM',
'Latitude' => 51.0003431,
'Longitude' => 23.745245,
'State' => 'Alabama',
'ZipCode' => '234234'
],
'Id' => 2001537302,
'MCC' => 455,
'MerchantId' => 999999888885,
'Name' => 'TestPayCC V2 OP',
'OperatorId' => 2001537302,
'OperatorName' => 'TestPayCC V2 OP _ Sub Merchant',
'SubMerchantId' => 999999888886
],
'CustomData' => [
'Actor' => 'String',
'DirectActor' => 'String',
'Distributor' => 'String',
'Machine' => 'String',
'Operator' => 'String',
'SoftDecline' => 'String'
],
'CardData' => [
'BrandInfo' => [
'PrimaryDescription' => 'VISA',
'PrimaryId' => '6',
'SecondaryDescription' => 'string',
'SecondaryId' => '0'
],
'CVV2' => '****',
'CardHolderName' => 'Test Card Holder',
'CardNumber' => '****',
'EMVData' => 'string',
'EntryMode' => 'MCR',
'ExpMonth' => '01',
'ExpYear' => '23',
'IDNumber' => '****',
'IsDebitCard' => true,
'RandomNumber' => 'string'
],
'PaymentInfo' => [
'SrvTranId' => '3584697388',
'AuthCode' => '333333',
'AuthAmount' => 5.5,
'SettAmount' => 5.5,
'RRN' => '111111',
'Token' => 'string',
'AuthDateTime' => '071221133300',
'SettDateTime' => '071221133330',
'TraceNumber' => '4444',
'AdditionalData' => 'string',
'IsGatewayTimeout' => false,
'ProviderExternalData' => 'string',
'InitiateTranReference' => 11223344,
'IsRevalueCard' => false
]
]),
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/Prepaid/Authorization"
payload := strings.NewReader("{\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.22-RC01 - Aug 25 2021\",\n \"HwSerial\": 434324119376526,\n \"Type\": \"Onyx\"\n },\n \"MachineInfo\": {\n \"City\": \"Abbeville\",\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Intra\": \"Europe\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DecimalPlace\": 2,\n \"ExternalId\": \"OperatorExternalID\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"Latitude\": 51.0003431,\n \"Longitude\": 23.745245,\n \"State\": \"Alabama\",\n \"ZipCode\": \"234234\"\n },\n \"GroupId\": \"String\",\n \"Id\": 106791869,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"OperatorId\": 2001537302,\n \"Region\": \"EU\",\n \"TerminalId\": \"8888888844\",\n \"Type\": \"machine type\",\n \"ZipCode\": \"22448Z\"\n },\n \"ActorInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Intra\": \"Europe\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DynamicURL\": \"https://www.nayax.com/alternativeURL\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"Latitude\": 51.0003431,\n \"Longitude\": 23.745245,\n \"State\": \"Alabama\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 2001537302,\n \"MCC\": 455,\n \"MerchantId\": 999999888885,\n \"Name\": \"TestPayCC V2 OP\",\n \"OperatorId\": 2001537302,\n \"OperatorName\": \"TestPayCC V2 OP _ Sub Merchant\",\n \"SubMerchantId\": 999999888886\n },\n \"CustomData\": {\n \"Actor\": \"String\",\n \"DirectActor\": \"String\",\n \"Distributor\": \"String\",\n \"Machine\": \"String\",\n \"Operator\": \"String\",\n \"SoftDecline\": \"String\"\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"VISA\",\n \"PrimaryId\": \"6\",\n \"SecondaryDescription\": \"string\",\n \"SecondaryId\": \"0\"\n },\n \"CVV2\": \"****\",\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EMVData\": \"string\",\n \"EntryMode\": \"MCR\",\n \"ExpMonth\": \"01\",\n \"ExpYear\": \"23\",\n \"IDNumber\": \"****\",\n \"IsDebitCard\": true,\n \"RandomNumber\": \"string\"\n },\n \"PaymentInfo\": {\n \"SrvTranId\": \"3584697388\",\n \"AuthCode\": \"333333\",\n \"AuthAmount\": 5.5,\n \"SettAmount\": 5.5,\n \"RRN\": \"111111\",\n \"Token\": \"string\",\n \"AuthDateTime\": \"071221133300\",\n \"SettDateTime\": \"071221133330\",\n \"TraceNumber\": \"4444\",\n \"AdditionalData\": \"string\",\n \"IsGatewayTimeout\": false,\n \"ProviderExternalData\": \"string\",\n \"InitiateTranReference\": 11223344,\n \"IsRevalueCard\": false\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/Prepaid/Authorization")
.header("Content-Type", "application/*+json")
.body("{\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.22-RC01 - Aug 25 2021\",\n \"HwSerial\": 434324119376526,\n \"Type\": \"Onyx\"\n },\n \"MachineInfo\": {\n \"City\": \"Abbeville\",\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Intra\": \"Europe\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DecimalPlace\": 2,\n \"ExternalId\": \"OperatorExternalID\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"Latitude\": 51.0003431,\n \"Longitude\": 23.745245,\n \"State\": \"Alabama\",\n \"ZipCode\": \"234234\"\n },\n \"GroupId\": \"String\",\n \"Id\": 106791869,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"OperatorId\": 2001537302,\n \"Region\": \"EU\",\n \"TerminalId\": \"8888888844\",\n \"Type\": \"machine type\",\n \"ZipCode\": \"22448Z\"\n },\n \"ActorInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Intra\": \"Europe\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DynamicURL\": \"https://www.nayax.com/alternativeURL\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"Latitude\": 51.0003431,\n \"Longitude\": 23.745245,\n \"State\": \"Alabama\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 2001537302,\n \"MCC\": 455,\n \"MerchantId\": 999999888885,\n \"Name\": \"TestPayCC V2 OP\",\n \"OperatorId\": 2001537302,\n \"OperatorName\": \"TestPayCC V2 OP _ Sub Merchant\",\n \"SubMerchantId\": 999999888886\n },\n \"CustomData\": {\n \"Actor\": \"String\",\n \"DirectActor\": \"String\",\n \"Distributor\": \"String\",\n \"Machine\": \"String\",\n \"Operator\": \"String\",\n \"SoftDecline\": \"String\"\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"VISA\",\n \"PrimaryId\": \"6\",\n \"SecondaryDescription\": \"string\",\n \"SecondaryId\": \"0\"\n },\n \"CVV2\": \"****\",\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EMVData\": \"string\",\n \"EntryMode\": \"MCR\",\n \"ExpMonth\": \"01\",\n \"ExpYear\": \"23\",\n \"IDNumber\": \"****\",\n \"IsDebitCard\": true,\n \"RandomNumber\": \"string\"\n },\n \"PaymentInfo\": {\n \"SrvTranId\": \"3584697388\",\n \"AuthCode\": \"333333\",\n \"AuthAmount\": 5.5,\n \"SettAmount\": 5.5,\n \"RRN\": \"111111\",\n \"Token\": \"string\",\n \"AuthDateTime\": \"071221133300\",\n \"SettDateTime\": \"071221133330\",\n \"TraceNumber\": \"4444\",\n \"AdditionalData\": \"string\",\n \"IsGatewayTimeout\": false,\n \"ProviderExternalData\": \"string\",\n \"InitiateTranReference\": 11223344,\n \"IsRevalueCard\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/Prepaid/Authorization")
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 \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.22-RC01 - Aug 25 2021\",\n \"HwSerial\": 434324119376526,\n \"Type\": \"Onyx\"\n },\n \"MachineInfo\": {\n \"City\": \"Abbeville\",\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Intra\": \"Europe\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DecimalPlace\": 2,\n \"ExternalId\": \"OperatorExternalID\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"Latitude\": 51.0003431,\n \"Longitude\": 23.745245,\n \"State\": \"Alabama\",\n \"ZipCode\": \"234234\"\n },\n \"GroupId\": \"String\",\n \"Id\": 106791869,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"OperatorId\": 2001537302,\n \"Region\": \"EU\",\n \"TerminalId\": \"8888888844\",\n \"Type\": \"machine type\",\n \"ZipCode\": \"22448Z\"\n },\n \"ActorInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Intra\": \"Europe\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DynamicURL\": \"https://www.nayax.com/alternativeURL\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"Latitude\": 51.0003431,\n \"Longitude\": 23.745245,\n \"State\": \"Alabama\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 2001537302,\n \"MCC\": 455,\n \"MerchantId\": 999999888885,\n \"Name\": \"TestPayCC V2 OP\",\n \"OperatorId\": 2001537302,\n \"OperatorName\": \"TestPayCC V2 OP _ Sub Merchant\",\n \"SubMerchantId\": 999999888886\n },\n \"CustomData\": {\n \"Actor\": \"String\",\n \"DirectActor\": \"String\",\n \"Distributor\": \"String\",\n \"Machine\": \"String\",\n \"Operator\": \"String\",\n \"SoftDecline\": \"String\"\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"VISA\",\n \"PrimaryId\": \"6\",\n \"SecondaryDescription\": \"string\",\n \"SecondaryId\": \"0\"\n },\n \"CVV2\": \"****\",\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EMVData\": \"string\",\n \"EntryMode\": \"MCR\",\n \"ExpMonth\": \"01\",\n \"ExpYear\": \"23\",\n \"IDNumber\": \"****\",\n \"IsDebitCard\": true,\n \"RandomNumber\": \"string\"\n },\n \"PaymentInfo\": {\n \"SrvTranId\": \"3584697388\",\n \"AuthCode\": \"333333\",\n \"AuthAmount\": 5.5,\n \"SettAmount\": 5.5,\n \"RRN\": \"111111\",\n \"Token\": \"string\",\n \"AuthDateTime\": \"071221133300\",\n \"SettDateTime\": \"071221133330\",\n \"TraceNumber\": \"4444\",\n \"AdditionalData\": \"string\",\n \"IsGatewayTimeout\": false,\n \"ProviderExternalData\": \"string\",\n \"InitiateTranReference\": 11223344,\n \"IsRevalueCard\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"Balance": {
"RegularCredit": 0,
"RegularCreditType": 0,
"RevalueCredit": 0
},
"PaymentInfo": {
"AdditionalData": "string",
"AuthAmount": 0.1,
"AuthCode": 333333,
"AuthDateTime": 230221101008,
"AuthSource": 555555,
"IsGatewayTimeout": true,
"RRN": 111111,
"SettAmount": 0.1,
"SettDateTime": 230221101009,
"SrvTranId": 2.3658433596983443e+35,
"Token": "string",
"TraceNumber": 4444
},
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "string",
"Verdict": "Approved"
}
}Body
Basic transaction information.
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
Merchant (Actor) details.
Show child attributes
Show child attributes
Custom Fields Information, Contact Nayax TPOC to define.
Show child attributes
Show child attributes
Additional data we read from the card (EMV data, expiration date, cvv2, etc.)
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
Response
Success
Type of Balance object Optional Pre-Paid balance details
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
Transaction status
Show child attributes
Show child attributes
Was this page helpful?