curl --request POST \
--url https://{domain}:{port}/Cortina/CreditCard/Authorization \
--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": 5,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": 71221132914,
"NayaxTransactionId": 3584697384,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB"
},
"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": ""
}
}
'import requests
url = "https://{domain}:{port}/Cortina/CreditCard/Authorization"
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": 5,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": 71221132914,
"NayaxTransactionId": 3584697384,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB"
},
"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": ""
}
}
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: 5,
CurrencyCode: 'ILS',
CurrencyNumeric: '376',
MachineAuTime: 71221132914,
NayaxTransactionId: 3584697384,
PaymentMethodID: 1,
SiteId: 1,
TimeoutMS: 15000,
TransactionId: 'N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB'
},
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: ''
}
})
};
fetch('https://{domain}:{port}/Cortina/CreditCard/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/CreditCard/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([
'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' => 5,
'CurrencyCode' => 'ILS',
'CurrencyNumeric' => '376',
'MachineAuTime' => 71221132914,
'NayaxTransactionId' => 3584697384,
'PaymentMethodID' => 1,
'SiteId' => 1,
'TimeoutMS' => 15000,
'TransactionId' => 'N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB'
],
'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' => ''
]
]),
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/Authorization"
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\": 5,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": 71221132914,\n \"NayaxTransactionId\": 3584697384,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB\"\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\": \"\"\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/Authorization")
.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\": 5,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": 71221132914,\n \"NayaxTransactionId\": 3584697384,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB\"\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\": \"\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/CreditCard/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 \"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\": 5,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": 71221132914,\n \"NayaxTransactionId\": 3584697384,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB\"\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\": \"\"\n }\n}"
response = http.request(request)
puts response.read_body{
"ECom3DSResponseInfo": {
"ECom3DSRedirectUrl": "https://the-verigication-example-url.com",
"ECom3DSStatus": 2
},
"EMVTags": {
"Tag71": "860D8424000008D466284E10D1FF7C",
"Tag72": "860D8424000008D466284E10D1FF7C",
"Tag8A": "3030",
"Tag91": "A93381BFF8C5E9EC0012"
},
"PaymentInfo": {
"AdditionalData": "",
"AuthAmount": 5,
"AuthCode": "333333",
"AuthDateTime": 71221132914,
"AuthSource": "555555",
"RRN": "111111",
"SettAmount": 5,
"SettDateTime": "12/7/2021 10:29:16 AM",
"SrvTranId": "222222",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
},
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}Cortina Credit Card Authorization
curl --request POST \
--url https://{domain}:{port}/Cortina/CreditCard/Authorization \
--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": 5,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": 71221132914,
"NayaxTransactionId": 3584697384,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB"
},
"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": ""
}
}
'import requests
url = "https://{domain}:{port}/Cortina/CreditCard/Authorization"
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": 5,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": 71221132914,
"NayaxTransactionId": 3584697384,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB"
},
"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": ""
}
}
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: 5,
CurrencyCode: 'ILS',
CurrencyNumeric: '376',
MachineAuTime: 71221132914,
NayaxTransactionId: 3584697384,
PaymentMethodID: 1,
SiteId: 1,
TimeoutMS: 15000,
TransactionId: 'N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB'
},
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: ''
}
})
};
fetch('https://{domain}:{port}/Cortina/CreditCard/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/CreditCard/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([
'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' => 5,
'CurrencyCode' => 'ILS',
'CurrencyNumeric' => '376',
'MachineAuTime' => 71221132914,
'NayaxTransactionId' => 3584697384,
'PaymentMethodID' => 1,
'SiteId' => 1,
'TimeoutMS' => 15000,
'TransactionId' => 'N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB'
],
'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' => ''
]
]),
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/Authorization"
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\": 5,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": 71221132914,\n \"NayaxTransactionId\": 3584697384,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB\"\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\": \"\"\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/Authorization")
.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\": 5,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": 71221132914,\n \"NayaxTransactionId\": 3584697384,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB\"\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\": \"\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/CreditCard/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 \"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\": 5,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": 71221132914,\n \"NayaxTransactionId\": 3584697384,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB\"\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\": \"\"\n }\n}"
response = http.request(request)
puts response.read_body{
"ECom3DSResponseInfo": {
"ECom3DSRedirectUrl": "https://the-verigication-example-url.com",
"ECom3DSStatus": 2
},
"EMVTags": {
"Tag71": "860D8424000008D466284E10D1FF7C",
"Tag72": "860D8424000008D466284E10D1FF7C",
"Tag8A": "3030",
"Tag91": "A93381BFF8C5E9EC0012"
},
"PaymentInfo": {
"AdditionalData": "",
"AuthAmount": 5,
"AuthCode": "333333",
"AuthDateTime": 71221132914,
"AuthSource": "555555",
"RRN": "111111",
"SettAmount": 5,
"SettDateTime": "12/7/2021 10:29:16 AM",
"SrvTranId": "222222",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
},
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "Cortina V2 Stub Tester",
"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
Show child attributes
Show child attributes
Contains 3-D Secure (3DS) data used for Strong Customer Authentication (SCA) in electronic commerce transactions.
Show child attributes
Show child attributes
Contains encryption details using the DUKPT (Derived Unique Key Per Transaction) method.
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
Response EMV tags, Mandatory for Contact.
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?