curl --request POST \
--url https://{domain}:{port}/Cortina/CreditCard/Cancel \
--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": 0.1,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": "291121220832",
"NayaxTransactionId": 3584688030,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "MASTERCARD",
"PrimaryId": "8",
"SecondaryDescription": "",
"SecondaryId": "0"
},
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EntryMode": "MCR",
"ExpMonth": "01",
"ExpYear": "23"
},
"CustomData": {
"Actor": "****"
},
"DeviceInfo": {
"FWVersion": "",
"HwSerial": "0000000000000100"
},
"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": 0.1,
"AuthCode": "333333",
"AuthDateTime": "291121220832",
"AuthSource": "55555",
"IsGatewayTimeout": false,
"RRN": "111111",
"SettDateTime": "11/29/2021 7",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
},
"ReasonCode": 0,
"ReasonText": "Unknown Error"
}
'import requests
url = "https://{domain}:{port}/Cortina/CreditCard/Cancel"
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": 0.1,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": "291121220832",
"NayaxTransactionId": 3584688030,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "MASTERCARD",
"PrimaryId": "8",
"SecondaryDescription": "",
"SecondaryId": "0"
},
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EntryMode": "MCR",
"ExpMonth": "01",
"ExpYear": "23"
},
"CustomData": { "Actor": "****" },
"DeviceInfo": {
"FWVersion": "",
"HwSerial": "0000000000000100"
},
"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": 0.1,
"AuthCode": "333333",
"AuthDateTime": "291121220832",
"AuthSource": "55555",
"IsGatewayTimeout": False,
"RRN": "111111",
"SettDateTime": "11/29/2021 7",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
},
"ReasonCode": 0,
"ReasonText": "Unknown Error"
}
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: 0.1,
CurrencyCode: 'ILS',
CurrencyNumeric: '376',
MachineAuTime: '291121220832',
NayaxTransactionId: 3584688030,
PaymentMethodID: 1,
SiteId: 1,
TimeoutMS: 15000
},
CardData: {
BrandInfo: {
PrimaryDescription: 'MASTERCARD',
PrimaryId: '8',
SecondaryDescription: '',
SecondaryId: '0'
},
CardHolderName: 'Test Card Holder',
CardNumber: '****',
EntryMode: 'MCR',
ExpMonth: '01',
ExpYear: '23'
},
CustomData: {Actor: '****'},
DeviceInfo: {FWVersion: '', HwSerial: '0000000000000100'},
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: 0.1,
AuthCode: '333333',
AuthDateTime: '291121220832',
AuthSource: '55555',
IsGatewayTimeout: false,
RRN: '111111',
SettDateTime: '11/29/2021 7',
Token: 'Cortina V2 Stub Tester Token',
TraceNumber: '4444'
},
ReasonCode: 0,
ReasonText: 'Unknown Error'
})
};
fetch('https://{domain}:{port}/Cortina/CreditCard/Cancel', 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/Cancel",
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' => 0.1,
'CurrencyCode' => 'ILS',
'CurrencyNumeric' => '376',
'MachineAuTime' => '291121220832',
'NayaxTransactionId' => 3584688030,
'PaymentMethodID' => 1,
'SiteId' => 1,
'TimeoutMS' => 15000
],
'CardData' => [
'BrandInfo' => [
'PrimaryDescription' => 'MASTERCARD',
'PrimaryId' => '8',
'SecondaryDescription' => '',
'SecondaryId' => '0'
],
'CardHolderName' => 'Test Card Holder',
'CardNumber' => '****',
'EntryMode' => 'MCR',
'ExpMonth' => '01',
'ExpYear' => '23'
],
'CustomData' => [
'Actor' => '****'
],
'DeviceInfo' => [
'FWVersion' => '',
'HwSerial' => '0000000000000100'
],
'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' => 0.1,
'AuthCode' => '333333',
'AuthDateTime' => '291121220832',
'AuthSource' => '55555',
'IsGatewayTimeout' => false,
'RRN' => '111111',
'SettDateTime' => '11/29/2021 7',
'Token' => 'Cortina V2 Stub Tester Token',
'TraceNumber' => '4444'
],
'ReasonCode' => 0,
'ReasonText' => 'Unknown Error'
]),
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/Cancel"
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\": 0.1,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": \"291121220832\",\n \"NayaxTransactionId\": 3584688030,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"MASTERCARD\",\n \"PrimaryId\": \"8\",\n \"SecondaryDescription\": \"\",\n \"SecondaryId\": \"0\"\n },\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EntryMode\": \"MCR\",\n \"ExpMonth\": \"01\",\n \"ExpYear\": \"23\"\n },\n \"CustomData\": {\n \"Actor\": \"****\"\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"\",\n \"HwSerial\": \"0000000000000100\"\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\": 0.1,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"291121220832\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettDateTime\": \"11/29/2021 7\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 0,\n \"ReasonText\": \"Unknown Error\"\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/Cancel")
.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\": 0.1,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": \"291121220832\",\n \"NayaxTransactionId\": 3584688030,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"MASTERCARD\",\n \"PrimaryId\": \"8\",\n \"SecondaryDescription\": \"\",\n \"SecondaryId\": \"0\"\n },\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EntryMode\": \"MCR\",\n \"ExpMonth\": \"01\",\n \"ExpYear\": \"23\"\n },\n \"CustomData\": {\n \"Actor\": \"****\"\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"\",\n \"HwSerial\": \"0000000000000100\"\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\": 0.1,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"291121220832\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettDateTime\": \"11/29/2021 7\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 0,\n \"ReasonText\": \"Unknown Error\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/CreditCard/Cancel")
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\": 0.1,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": \"291121220832\",\n \"NayaxTransactionId\": 3584688030,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"MASTERCARD\",\n \"PrimaryId\": \"8\",\n \"SecondaryDescription\": \"\",\n \"SecondaryId\": \"0\"\n },\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EntryMode\": \"MCR\",\n \"ExpMonth\": \"01\",\n \"ExpYear\": \"23\"\n },\n \"CustomData\": {\n \"Actor\": \"****\"\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"\",\n \"HwSerial\": \"0000000000000100\"\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\": 0.1,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"291121220832\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettDateTime\": \"11/29/2021 7\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 0,\n \"ReasonText\": \"Unknown Error\"\n}"
response = http.request(request)
puts response.read_body{
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}Cortina Credit Card Cancel
curl --request POST \
--url https://{domain}:{port}/Cortina/CreditCard/Cancel \
--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": 0.1,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": "291121220832",
"NayaxTransactionId": 3584688030,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "MASTERCARD",
"PrimaryId": "8",
"SecondaryDescription": "",
"SecondaryId": "0"
},
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EntryMode": "MCR",
"ExpMonth": "01",
"ExpYear": "23"
},
"CustomData": {
"Actor": "****"
},
"DeviceInfo": {
"FWVersion": "",
"HwSerial": "0000000000000100"
},
"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": 0.1,
"AuthCode": "333333",
"AuthDateTime": "291121220832",
"AuthSource": "55555",
"IsGatewayTimeout": false,
"RRN": "111111",
"SettDateTime": "11/29/2021 7",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
},
"ReasonCode": 0,
"ReasonText": "Unknown Error"
}
'import requests
url = "https://{domain}:{port}/Cortina/CreditCard/Cancel"
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": 0.1,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": "291121220832",
"NayaxTransactionId": 3584688030,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "MASTERCARD",
"PrimaryId": "8",
"SecondaryDescription": "",
"SecondaryId": "0"
},
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EntryMode": "MCR",
"ExpMonth": "01",
"ExpYear": "23"
},
"CustomData": { "Actor": "****" },
"DeviceInfo": {
"FWVersion": "",
"HwSerial": "0000000000000100"
},
"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": 0.1,
"AuthCode": "333333",
"AuthDateTime": "291121220832",
"AuthSource": "55555",
"IsGatewayTimeout": False,
"RRN": "111111",
"SettDateTime": "11/29/2021 7",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
},
"ReasonCode": 0,
"ReasonText": "Unknown Error"
}
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: 0.1,
CurrencyCode: 'ILS',
CurrencyNumeric: '376',
MachineAuTime: '291121220832',
NayaxTransactionId: 3584688030,
PaymentMethodID: 1,
SiteId: 1,
TimeoutMS: 15000
},
CardData: {
BrandInfo: {
PrimaryDescription: 'MASTERCARD',
PrimaryId: '8',
SecondaryDescription: '',
SecondaryId: '0'
},
CardHolderName: 'Test Card Holder',
CardNumber: '****',
EntryMode: 'MCR',
ExpMonth: '01',
ExpYear: '23'
},
CustomData: {Actor: '****'},
DeviceInfo: {FWVersion: '', HwSerial: '0000000000000100'},
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: 0.1,
AuthCode: '333333',
AuthDateTime: '291121220832',
AuthSource: '55555',
IsGatewayTimeout: false,
RRN: '111111',
SettDateTime: '11/29/2021 7',
Token: 'Cortina V2 Stub Tester Token',
TraceNumber: '4444'
},
ReasonCode: 0,
ReasonText: 'Unknown Error'
})
};
fetch('https://{domain}:{port}/Cortina/CreditCard/Cancel', 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/Cancel",
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' => 0.1,
'CurrencyCode' => 'ILS',
'CurrencyNumeric' => '376',
'MachineAuTime' => '291121220832',
'NayaxTransactionId' => 3584688030,
'PaymentMethodID' => 1,
'SiteId' => 1,
'TimeoutMS' => 15000
],
'CardData' => [
'BrandInfo' => [
'PrimaryDescription' => 'MASTERCARD',
'PrimaryId' => '8',
'SecondaryDescription' => '',
'SecondaryId' => '0'
],
'CardHolderName' => 'Test Card Holder',
'CardNumber' => '****',
'EntryMode' => 'MCR',
'ExpMonth' => '01',
'ExpYear' => '23'
],
'CustomData' => [
'Actor' => '****'
],
'DeviceInfo' => [
'FWVersion' => '',
'HwSerial' => '0000000000000100'
],
'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' => 0.1,
'AuthCode' => '333333',
'AuthDateTime' => '291121220832',
'AuthSource' => '55555',
'IsGatewayTimeout' => false,
'RRN' => '111111',
'SettDateTime' => '11/29/2021 7',
'Token' => 'Cortina V2 Stub Tester Token',
'TraceNumber' => '4444'
],
'ReasonCode' => 0,
'ReasonText' => 'Unknown Error'
]),
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/Cancel"
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\": 0.1,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": \"291121220832\",\n \"NayaxTransactionId\": 3584688030,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"MASTERCARD\",\n \"PrimaryId\": \"8\",\n \"SecondaryDescription\": \"\",\n \"SecondaryId\": \"0\"\n },\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EntryMode\": \"MCR\",\n \"ExpMonth\": \"01\",\n \"ExpYear\": \"23\"\n },\n \"CustomData\": {\n \"Actor\": \"****\"\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"\",\n \"HwSerial\": \"0000000000000100\"\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\": 0.1,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"291121220832\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettDateTime\": \"11/29/2021 7\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 0,\n \"ReasonText\": \"Unknown Error\"\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/Cancel")
.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\": 0.1,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": \"291121220832\",\n \"NayaxTransactionId\": 3584688030,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"MASTERCARD\",\n \"PrimaryId\": \"8\",\n \"SecondaryDescription\": \"\",\n \"SecondaryId\": \"0\"\n },\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EntryMode\": \"MCR\",\n \"ExpMonth\": \"01\",\n \"ExpYear\": \"23\"\n },\n \"CustomData\": {\n \"Actor\": \"****\"\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"\",\n \"HwSerial\": \"0000000000000100\"\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\": 0.1,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"291121220832\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettDateTime\": \"11/29/2021 7\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 0,\n \"ReasonText\": \"Unknown Error\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/CreditCard/Cancel")
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\": 0.1,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": \"291121220832\",\n \"NayaxTransactionId\": 3584688030,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000\n },\n \"CardData\": {\n \"BrandInfo\": {\n \"PrimaryDescription\": \"MASTERCARD\",\n \"PrimaryId\": \"8\",\n \"SecondaryDescription\": \"\",\n \"SecondaryId\": \"0\"\n },\n \"CardHolderName\": \"Test Card Holder\",\n \"CardNumber\": \"****\",\n \"EntryMode\": \"MCR\",\n \"ExpMonth\": \"01\",\n \"ExpYear\": \"23\"\n },\n \"CustomData\": {\n \"Actor\": \"****\"\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"\",\n \"HwSerial\": \"0000000000000100\"\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\": 0.1,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"291121220832\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettDateTime\": \"11/29/2021 7\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 0,\n \"ReasonText\": \"Unknown Error\"\n}"
response = http.request(request)
puts response.read_body{
"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
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
Transaction status
Show child attributes
Show child attributes
Was this page helpful?