curl --request POST \
--url https://{domain}:{port}/Cortina/CreditCard/Settlement \
--header 'Content-Type: application/*+json' \
--data '
{
"ActorInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DynamicURL": "",
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"State": "State",
"ZipCode": "234234"
},
"Id": 2001537302,
"MerchantId": "999999888885",
"Name": "TestPayCC V2 OP"
},
"BasicInfo": {
"Amount": 3,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": "071221133300",
"NayaxTransactionId": 3584697388,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "3584697388"
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "VISA",
"PrimaryId": "6",
"SecondaryDescription": "",
"SecondaryId": "0"
},
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EMVData": " xxxxxxxx",
"EntryMode": "CON",
"ExpMonth": "12",
"ExpYear": "22"
},
"CustomData": {
"Actor": "****",
"Machine": "****"
},
"DeviceInfo": {
"FWVersion": "4.0.0.22-RC01 - Aug 25 2021",
"HwSerial": 434324119376526
},
"MachineInfo": {
"City": "Abbeville",
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DecimalPlace": 2,
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"ZipCode": "234234"
},
"Id": 106791869,
"Name": "Itai_TestPayCC V2",
"Offset": "3.00",
"TerminalId": "8888888844",
"ZipCode": "54321"
},
"PaymentInfo": {
"AuthAmount": 5,
"AuthCode": "333333",
"AuthDateTime": "071221133300",
"AuthSource": "55555",
"IsGatewayTimeout": false,
"RRN": "111111",
"SettDateTime": "12/7/2021 10",
"SrvTranId": "3584697388",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
}
}
'import requests
url = "https://{domain}:{port}/Cortina/CreditCard/Settlement"
payload = {
"ActorInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DynamicURL": "",
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"State": "State",
"ZipCode": "234234"
},
"Id": 2001537302,
"MerchantId": "999999888885",
"Name": "TestPayCC V2 OP"
},
"BasicInfo": {
"Amount": 3,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": "071221133300",
"NayaxTransactionId": 3584697388,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "3584697388"
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "VISA",
"PrimaryId": "6",
"SecondaryDescription": "",
"SecondaryId": "0"
},
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EMVData": " xxxxxxxx",
"EntryMode": "CON",
"ExpMonth": "12",
"ExpYear": "22"
},
"CustomData": {
"Actor": "****",
"Machine": "****"
},
"DeviceInfo": {
"FWVersion": "4.0.0.22-RC01 - Aug 25 2021",
"HwSerial": 434324119376526
},
"MachineInfo": {
"City": "Abbeville",
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DecimalPlace": 2,
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"ZipCode": "234234"
},
"Id": 106791869,
"Name": "Itai_TestPayCC V2",
"Offset": "3.00",
"TerminalId": "8888888844",
"ZipCode": "54321"
},
"PaymentInfo": {
"AuthAmount": 5,
"AuthCode": "333333",
"AuthDateTime": "071221133300",
"AuthSource": "55555",
"IsGatewayTimeout": False,
"RRN": "111111",
"SettDateTime": "12/7/2021 10",
"SrvTranId": "3584697388",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
}
}
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: {
Country: {Alpha2Code: 'US', Alpha3Code: 'USA', Name: 'UNITED STATES', NumericCode: '840'},
DynamicURL: '',
GeoLocation: {
Address: 'River',
City: 'Zambezi',
CountryCode: 'ZM',
State: 'State',
ZipCode: '234234'
},
Id: 2001537302,
MerchantId: '999999888885',
Name: 'TestPayCC V2 OP'
},
BasicInfo: {
Amount: 3,
CurrencyCode: 'ILS',
CurrencyNumeric: '376',
MachineAuTime: '071221133300',
NayaxTransactionId: 3584697388,
PaymentMethodID: 1,
SiteId: 1,
TimeoutMS: 15000,
TransactionId: '3584697388'
},
CardData: {
BrandInfo: {
PrimaryDescription: 'VISA',
PrimaryId: '6',
SecondaryDescription: '',
SecondaryId: '0'
},
CardHolderName: 'Test Card Holder',
CardNumber: '****',
EMVData: ' xxxxxxxx',
EntryMode: 'CON',
ExpMonth: '12',
ExpYear: '22'
},
CustomData: {Actor: '****', Machine: '****'},
DeviceInfo: {FWVersion: '4.0.0.22-RC01 - Aug 25 2021', HwSerial: 434324119376526},
MachineInfo: {
City: 'Abbeville',
Country: {Alpha2Code: 'US', Alpha3Code: 'USA', Name: 'UNITED STATES', NumericCode: '840'},
DecimalPlace: 2,
GeoLocation: {Address: 'River', City: 'Zambezi', CountryCode: 'ZM', ZipCode: '234234'},
Id: 106791869,
Name: 'Itai_TestPayCC V2',
Offset: '3.00',
TerminalId: '8888888844',
ZipCode: '54321'
},
PaymentInfo: {
AuthAmount: 5,
AuthCode: '333333',
AuthDateTime: '071221133300',
AuthSource: '55555',
IsGatewayTimeout: false,
RRN: '111111',
SettDateTime: '12/7/2021 10',
SrvTranId: '3584697388',
Token: 'Cortina V2 Stub Tester Token',
TraceNumber: '4444'
}
})
};
fetch('https://{domain}:{port}/Cortina/CreditCard/Settlement', 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/CreditCard/Settlement",
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' => [
'Country' => [
'Alpha2Code' => 'US',
'Alpha3Code' => 'USA',
'Name' => 'UNITED STATES',
'NumericCode' => '840'
],
'DynamicURL' => '',
'GeoLocation' => [
'Address' => 'River',
'City' => 'Zambezi',
'CountryCode' => 'ZM',
'State' => 'State',
'ZipCode' => '234234'
],
'Id' => 2001537302,
'MerchantId' => '999999888885',
'Name' => 'TestPayCC V2 OP'
],
'BasicInfo' => [
'Amount' => 3,
'CurrencyCode' => 'ILS',
'CurrencyNumeric' => '376',
'MachineAuTime' => '071221133300',
'NayaxTransactionId' => 3584697388,
'PaymentMethodID' => 1,
'SiteId' => 1,
'TimeoutMS' => 15000,
'TransactionId' => '3584697388'
],
'CardData' => [
'BrandInfo' => [
'PrimaryDescription' => 'VISA',
'PrimaryId' => '6',
'SecondaryDescription' => '',
'SecondaryId' => '0'
],
'CardHolderName' => 'Test Card Holder',
'CardNumber' => '****',
'EMVData' => ' xxxxxxxx',
'EntryMode' => 'CON',
'ExpMonth' => '12',
'ExpYear' => '22'
],
'CustomData' => [
'Actor' => '****',
'Machine' => '****'
],
'DeviceInfo' => [
'FWVersion' => '4.0.0.22-RC01 - Aug 25 2021',
'HwSerial' => 434324119376526
],
'MachineInfo' => [
'City' => 'Abbeville',
'Country' => [
'Alpha2Code' => 'US',
'Alpha3Code' => 'USA',
'Name' => 'UNITED STATES',
'NumericCode' => '840'
],
'DecimalPlace' => 2,
'GeoLocation' => [
'Address' => 'River',
'City' => 'Zambezi',
'CountryCode' => 'ZM',
'ZipCode' => '234234'
],
'Id' => 106791869,
'Name' => 'Itai_TestPayCC V2',
'Offset' => '3.00',
'TerminalId' => '8888888844',
'ZipCode' => '54321'
],
'PaymentInfo' => [
'AuthAmount' => 5,
'AuthCode' => '333333',
'AuthDateTime' => '071221133300',
'AuthSource' => '55555',
'IsGatewayTimeout' => false,
'RRN' => '111111',
'SettDateTime' => '12/7/2021 10',
'SrvTranId' => '3584697388',
'Token' => 'Cortina V2 Stub Tester Token',
'TraceNumber' => '4444'
]
]),
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/CreditCard/Settlement"
payload := strings.NewReader("{\n \"ActorInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DynamicURL\": \"\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"State\": \"State\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 2001537302,\n \"MerchantId\": \"999999888885\",\n \"Name\": \"TestPayCC V2 OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 3,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": \"071221133300\",\n \"NayaxTransactionId\": 3584697388,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"3584697388\"\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"VISA\",\n \"PrimaryId\": \"6\",\n \"SecondaryDescription\": \"\",\n \"SecondaryId\": \"0\"\n },\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EMVData\": \" xxxxxxxx\",\n \"EntryMode\": \"CON\",\n \"ExpMonth\": \"12\",\n \"ExpYear\": \"22\"\n },\n \"CustomData\": {\n \"Actor\": \"****\",\n \"Machine\": \"****\"\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.22-RC01 - Aug 25 2021\",\n \"HwSerial\": 434324119376526\n },\n \"MachineInfo\": {\n \"City\": \"Abbeville\",\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DecimalPlace\": 2,\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 106791869,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"TerminalId\": \"8888888844\",\n \"ZipCode\": \"54321\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 5,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"071221133300\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettDateTime\": \"12/7/2021 10\",\n \"SrvTranId\": \"3584697388\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\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/CreditCard/Settlement")
.header("Content-Type", "application/*+json")
.body("{\n \"ActorInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DynamicURL\": \"\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"State\": \"State\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 2001537302,\n \"MerchantId\": \"999999888885\",\n \"Name\": \"TestPayCC V2 OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 3,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": \"071221133300\",\n \"NayaxTransactionId\": 3584697388,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"3584697388\"\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"VISA\",\n \"PrimaryId\": \"6\",\n \"SecondaryDescription\": \"\",\n \"SecondaryId\": \"0\"\n },\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EMVData\": \" xxxxxxxx\",\n \"EntryMode\": \"CON\",\n \"ExpMonth\": \"12\",\n \"ExpYear\": \"22\"\n },\n \"CustomData\": {\n \"Actor\": \"****\",\n \"Machine\": \"****\"\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.22-RC01 - Aug 25 2021\",\n \"HwSerial\": 434324119376526\n },\n \"MachineInfo\": {\n \"City\": \"Abbeville\",\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DecimalPlace\": 2,\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 106791869,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"TerminalId\": \"8888888844\",\n \"ZipCode\": \"54321\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 5,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"071221133300\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettDateTime\": \"12/7/2021 10\",\n \"SrvTranId\": \"3584697388\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/CreditCard/Settlement")
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 \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DynamicURL\": \"\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"State\": \"State\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 2001537302,\n \"MerchantId\": \"999999888885\",\n \"Name\": \"TestPayCC V2 OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 3,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": \"071221133300\",\n \"NayaxTransactionId\": 3584697388,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"3584697388\"\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"VISA\",\n \"PrimaryId\": \"6\",\n \"SecondaryDescription\": \"\",\n \"SecondaryId\": \"0\"\n },\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EMVData\": \" xxxxxxxx\",\n \"EntryMode\": \"CON\",\n \"ExpMonth\": \"12\",\n \"ExpYear\": \"22\"\n },\n \"CustomData\": {\n \"Actor\": \"****\",\n \"Machine\": \"****\"\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.22-RC01 - Aug 25 2021\",\n \"HwSerial\": 434324119376526\n },\n \"MachineInfo\": {\n \"City\": \"Abbeville\",\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DecimalPlace\": 2,\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 106791869,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"TerminalId\": \"8888888844\",\n \"ZipCode\": \"54321\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 5,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"071221133300\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettDateTime\": \"12/7/2021 10\",\n \"SrvTranId\": \"3584697388\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n }\n}"
response = http.request(request)
puts response.read_body{
"Batch": {
"AddToBatch": true,
"BatchId": 0,
"BatchStatus": 0,
"BatchTransactionId": "string",
"DeleteFromBatch": true,
"OperationToPerform": 1
},
"PaymentInfo": {
"AuthAmount": 5,
"AuthCode": "333333",
"AuthDateTime": "071221133300",
"AuthSource": "55555",
"IsGatewayTimeout": false,
"RRN": "111111",
"SettDateTime": "12/7/2021 10",
"SrvTranId": "3584697388",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
},
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}Cortina Credit Card Settlement
curl --request POST \
--url https://{domain}:{port}/Cortina/CreditCard/Settlement \
--header 'Content-Type: application/*+json' \
--data '
{
"ActorInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DynamicURL": "",
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"State": "State",
"ZipCode": "234234"
},
"Id": 2001537302,
"MerchantId": "999999888885",
"Name": "TestPayCC V2 OP"
},
"BasicInfo": {
"Amount": 3,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": "071221133300",
"NayaxTransactionId": 3584697388,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "3584697388"
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "VISA",
"PrimaryId": "6",
"SecondaryDescription": "",
"SecondaryId": "0"
},
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EMVData": " xxxxxxxx",
"EntryMode": "CON",
"ExpMonth": "12",
"ExpYear": "22"
},
"CustomData": {
"Actor": "****",
"Machine": "****"
},
"DeviceInfo": {
"FWVersion": "4.0.0.22-RC01 - Aug 25 2021",
"HwSerial": 434324119376526
},
"MachineInfo": {
"City": "Abbeville",
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DecimalPlace": 2,
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"ZipCode": "234234"
},
"Id": 106791869,
"Name": "Itai_TestPayCC V2",
"Offset": "3.00",
"TerminalId": "8888888844",
"ZipCode": "54321"
},
"PaymentInfo": {
"AuthAmount": 5,
"AuthCode": "333333",
"AuthDateTime": "071221133300",
"AuthSource": "55555",
"IsGatewayTimeout": false,
"RRN": "111111",
"SettDateTime": "12/7/2021 10",
"SrvTranId": "3584697388",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
}
}
'import requests
url = "https://{domain}:{port}/Cortina/CreditCard/Settlement"
payload = {
"ActorInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DynamicURL": "",
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"State": "State",
"ZipCode": "234234"
},
"Id": 2001537302,
"MerchantId": "999999888885",
"Name": "TestPayCC V2 OP"
},
"BasicInfo": {
"Amount": 3,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": "071221133300",
"NayaxTransactionId": 3584697388,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "3584697388"
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "VISA",
"PrimaryId": "6",
"SecondaryDescription": "",
"SecondaryId": "0"
},
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EMVData": " xxxxxxxx",
"EntryMode": "CON",
"ExpMonth": "12",
"ExpYear": "22"
},
"CustomData": {
"Actor": "****",
"Machine": "****"
},
"DeviceInfo": {
"FWVersion": "4.0.0.22-RC01 - Aug 25 2021",
"HwSerial": 434324119376526
},
"MachineInfo": {
"City": "Abbeville",
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "UNITED STATES",
"NumericCode": "840"
},
"DecimalPlace": 2,
"GeoLocation": {
"Address": "River",
"City": "Zambezi",
"CountryCode": "ZM",
"ZipCode": "234234"
},
"Id": 106791869,
"Name": "Itai_TestPayCC V2",
"Offset": "3.00",
"TerminalId": "8888888844",
"ZipCode": "54321"
},
"PaymentInfo": {
"AuthAmount": 5,
"AuthCode": "333333",
"AuthDateTime": "071221133300",
"AuthSource": "55555",
"IsGatewayTimeout": False,
"RRN": "111111",
"SettDateTime": "12/7/2021 10",
"SrvTranId": "3584697388",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
}
}
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: {
Country: {Alpha2Code: 'US', Alpha3Code: 'USA', Name: 'UNITED STATES', NumericCode: '840'},
DynamicURL: '',
GeoLocation: {
Address: 'River',
City: 'Zambezi',
CountryCode: 'ZM',
State: 'State',
ZipCode: '234234'
},
Id: 2001537302,
MerchantId: '999999888885',
Name: 'TestPayCC V2 OP'
},
BasicInfo: {
Amount: 3,
CurrencyCode: 'ILS',
CurrencyNumeric: '376',
MachineAuTime: '071221133300',
NayaxTransactionId: 3584697388,
PaymentMethodID: 1,
SiteId: 1,
TimeoutMS: 15000,
TransactionId: '3584697388'
},
CardData: {
BrandInfo: {
PrimaryDescription: 'VISA',
PrimaryId: '6',
SecondaryDescription: '',
SecondaryId: '0'
},
CardHolderName: 'Test Card Holder',
CardNumber: '****',
EMVData: ' xxxxxxxx',
EntryMode: 'CON',
ExpMonth: '12',
ExpYear: '22'
},
CustomData: {Actor: '****', Machine: '****'},
DeviceInfo: {FWVersion: '4.0.0.22-RC01 - Aug 25 2021', HwSerial: 434324119376526},
MachineInfo: {
City: 'Abbeville',
Country: {Alpha2Code: 'US', Alpha3Code: 'USA', Name: 'UNITED STATES', NumericCode: '840'},
DecimalPlace: 2,
GeoLocation: {Address: 'River', City: 'Zambezi', CountryCode: 'ZM', ZipCode: '234234'},
Id: 106791869,
Name: 'Itai_TestPayCC V2',
Offset: '3.00',
TerminalId: '8888888844',
ZipCode: '54321'
},
PaymentInfo: {
AuthAmount: 5,
AuthCode: '333333',
AuthDateTime: '071221133300',
AuthSource: '55555',
IsGatewayTimeout: false,
RRN: '111111',
SettDateTime: '12/7/2021 10',
SrvTranId: '3584697388',
Token: 'Cortina V2 Stub Tester Token',
TraceNumber: '4444'
}
})
};
fetch('https://{domain}:{port}/Cortina/CreditCard/Settlement', 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/CreditCard/Settlement",
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' => [
'Country' => [
'Alpha2Code' => 'US',
'Alpha3Code' => 'USA',
'Name' => 'UNITED STATES',
'NumericCode' => '840'
],
'DynamicURL' => '',
'GeoLocation' => [
'Address' => 'River',
'City' => 'Zambezi',
'CountryCode' => 'ZM',
'State' => 'State',
'ZipCode' => '234234'
],
'Id' => 2001537302,
'MerchantId' => '999999888885',
'Name' => 'TestPayCC V2 OP'
],
'BasicInfo' => [
'Amount' => 3,
'CurrencyCode' => 'ILS',
'CurrencyNumeric' => '376',
'MachineAuTime' => '071221133300',
'NayaxTransactionId' => 3584697388,
'PaymentMethodID' => 1,
'SiteId' => 1,
'TimeoutMS' => 15000,
'TransactionId' => '3584697388'
],
'CardData' => [
'BrandInfo' => [
'PrimaryDescription' => 'VISA',
'PrimaryId' => '6',
'SecondaryDescription' => '',
'SecondaryId' => '0'
],
'CardHolderName' => 'Test Card Holder',
'CardNumber' => '****',
'EMVData' => ' xxxxxxxx',
'EntryMode' => 'CON',
'ExpMonth' => '12',
'ExpYear' => '22'
],
'CustomData' => [
'Actor' => '****',
'Machine' => '****'
],
'DeviceInfo' => [
'FWVersion' => '4.0.0.22-RC01 - Aug 25 2021',
'HwSerial' => 434324119376526
],
'MachineInfo' => [
'City' => 'Abbeville',
'Country' => [
'Alpha2Code' => 'US',
'Alpha3Code' => 'USA',
'Name' => 'UNITED STATES',
'NumericCode' => '840'
],
'DecimalPlace' => 2,
'GeoLocation' => [
'Address' => 'River',
'City' => 'Zambezi',
'CountryCode' => 'ZM',
'ZipCode' => '234234'
],
'Id' => 106791869,
'Name' => 'Itai_TestPayCC V2',
'Offset' => '3.00',
'TerminalId' => '8888888844',
'ZipCode' => '54321'
],
'PaymentInfo' => [
'AuthAmount' => 5,
'AuthCode' => '333333',
'AuthDateTime' => '071221133300',
'AuthSource' => '55555',
'IsGatewayTimeout' => false,
'RRN' => '111111',
'SettDateTime' => '12/7/2021 10',
'SrvTranId' => '3584697388',
'Token' => 'Cortina V2 Stub Tester Token',
'TraceNumber' => '4444'
]
]),
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/CreditCard/Settlement"
payload := strings.NewReader("{\n \"ActorInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DynamicURL\": \"\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"State\": \"State\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 2001537302,\n \"MerchantId\": \"999999888885\",\n \"Name\": \"TestPayCC V2 OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 3,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": \"071221133300\",\n \"NayaxTransactionId\": 3584697388,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"3584697388\"\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"VISA\",\n \"PrimaryId\": \"6\",\n \"SecondaryDescription\": \"\",\n \"SecondaryId\": \"0\"\n },\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EMVData\": \" xxxxxxxx\",\n \"EntryMode\": \"CON\",\n \"ExpMonth\": \"12\",\n \"ExpYear\": \"22\"\n },\n \"CustomData\": {\n \"Actor\": \"****\",\n \"Machine\": \"****\"\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.22-RC01 - Aug 25 2021\",\n \"HwSerial\": 434324119376526\n },\n \"MachineInfo\": {\n \"City\": \"Abbeville\",\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DecimalPlace\": 2,\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 106791869,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"TerminalId\": \"8888888844\",\n \"ZipCode\": \"54321\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 5,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"071221133300\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettDateTime\": \"12/7/2021 10\",\n \"SrvTranId\": \"3584697388\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\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/CreditCard/Settlement")
.header("Content-Type", "application/*+json")
.body("{\n \"ActorInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DynamicURL\": \"\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"State\": \"State\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 2001537302,\n \"MerchantId\": \"999999888885\",\n \"Name\": \"TestPayCC V2 OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 3,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": \"071221133300\",\n \"NayaxTransactionId\": 3584697388,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"3584697388\"\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"VISA\",\n \"PrimaryId\": \"6\",\n \"SecondaryDescription\": \"\",\n \"SecondaryId\": \"0\"\n },\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EMVData\": \" xxxxxxxx\",\n \"EntryMode\": \"CON\",\n \"ExpMonth\": \"12\",\n \"ExpYear\": \"22\"\n },\n \"CustomData\": {\n \"Actor\": \"****\",\n \"Machine\": \"****\"\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.22-RC01 - Aug 25 2021\",\n \"HwSerial\": 434324119376526\n },\n \"MachineInfo\": {\n \"City\": \"Abbeville\",\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DecimalPlace\": 2,\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 106791869,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"TerminalId\": \"8888888844\",\n \"ZipCode\": \"54321\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 5,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"071221133300\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettDateTime\": \"12/7/2021 10\",\n \"SrvTranId\": \"3584697388\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/CreditCard/Settlement")
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 \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DynamicURL\": \"\",\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"State\": \"State\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 2001537302,\n \"MerchantId\": \"999999888885\",\n \"Name\": \"TestPayCC V2 OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 3,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": \"071221133300\",\n \"NayaxTransactionId\": 3584697388,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"3584697388\"\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"VISA\",\n \"PrimaryId\": \"6\",\n \"SecondaryDescription\": \"\",\n \"SecondaryId\": \"0\"\n },\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EMVData\": \" xxxxxxxx\",\n \"EntryMode\": \"CON\",\n \"ExpMonth\": \"12\",\n \"ExpYear\": \"22\"\n },\n \"CustomData\": {\n \"Actor\": \"****\",\n \"Machine\": \"****\"\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"4.0.0.22-RC01 - Aug 25 2021\",\n \"HwSerial\": 434324119376526\n },\n \"MachineInfo\": {\n \"City\": \"Abbeville\",\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"UNITED STATES\",\n \"NumericCode\": \"840\"\n },\n \"DecimalPlace\": 2,\n \"GeoLocation\": {\n \"Address\": \"River\",\n \"City\": \"Zambezi\",\n \"CountryCode\": \"ZM\",\n \"ZipCode\": \"234234\"\n },\n \"Id\": 106791869,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"TerminalId\": \"8888888844\",\n \"ZipCode\": \"54321\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 5,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"071221133300\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettDateTime\": \"12/7/2021 10\",\n \"SrvTranId\": \"3584697388\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n }\n}"
response = http.request(request)
puts response.read_body{
"Batch": {
"AddToBatch": true,
"BatchId": 0,
"BatchStatus": 0,
"BatchTransactionId": "string",
"DeleteFromBatch": true,
"OperationToPerform": 1
},
"PaymentInfo": {
"AuthAmount": 5,
"AuthCode": "333333",
"AuthDateTime": "071221133300",
"AuthSource": "55555",
"IsGatewayTimeout": false,
"RRN": "111111",
"SettDateTime": "12/7/2021 10",
"SrvTranId": "3584697388",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
},
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}PaymentInfo, processes the charge, and returns the settlement status along with relevant Batch information for reconciliation.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
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
Contains encryption metadata used for secure transmission.
Show child attributes
Show child attributes
Response
Success
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?