curl --request POST \
--url https://{domain}:{port}/Cortina/CreditCard/Void \
--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.9,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": 81221130018,
"NayaxTransactionId": 3584701816,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "12345"
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "MASTERCARD",
"PrimaryId": "8",
"SecondaryDescription": "",
"SecondaryId": "0"
},
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EntryMode": "MCR",
"ExpMonth": "01",
"ExpYear": "23"
},
"CustomData": {
"Actor": "****",
"Machine": "****"
},
"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": 3.9,
"AuthCode": "12345",
"AuthDateTime": "12345",
"AuthSource": "12345",
"IsGatewayTimeout": false,
"RRN": "12345",
"SettAmount": 3.9,
"SettDateTime": "12345",
"SrvTranId": "12345",
"Token": "12345",
"TraceNumber": "12345"
},
"ReasonCode": 50
}
'import requests
url = "https://{domain}:{port}/Cortina/CreditCard/Void"
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.9,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": 81221130018,
"NayaxTransactionId": 3584701816,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "12345"
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "MASTERCARD",
"PrimaryId": "8",
"SecondaryDescription": "",
"SecondaryId": "0"
},
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EntryMode": "MCR",
"ExpMonth": "01",
"ExpYear": "23"
},
"CustomData": {
"Actor": "****",
"Machine": "****"
},
"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": 3.9,
"AuthCode": "12345",
"AuthDateTime": "12345",
"AuthSource": "12345",
"IsGatewayTimeout": False,
"RRN": "12345",
"SettAmount": 3.9,
"SettDateTime": "12345",
"SrvTranId": "12345",
"Token": "12345",
"TraceNumber": "12345"
},
"ReasonCode": 50
}
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.9,
CurrencyCode: 'ILS',
CurrencyNumeric: '376',
MachineAuTime: 81221130018,
NayaxTransactionId: 3584701816,
PaymentMethodID: 1,
SiteId: 1,
TimeoutMS: 15000,
TransactionId: '12345'
},
CardData: {
BrandInfo: {
PrimaryDescription: 'MASTERCARD',
PrimaryId: '8',
SecondaryDescription: '',
SecondaryId: '0'
},
CardHolderName: 'Test Card Holder',
CardNumber: '****',
EntryMode: 'MCR',
ExpMonth: '01',
ExpYear: '23'
},
CustomData: {Actor: '****', Machine: '****'},
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: 3.9,
AuthCode: '12345',
AuthDateTime: '12345',
AuthSource: '12345',
IsGatewayTimeout: false,
RRN: '12345',
SettAmount: 3.9,
SettDateTime: '12345',
SrvTranId: '12345',
Token: '12345',
TraceNumber: '12345'
},
ReasonCode: 50
})
};
fetch('https://{domain}:{port}/Cortina/CreditCard/Void', 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/Void",
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.9,
'CurrencyCode' => 'ILS',
'CurrencyNumeric' => '376',
'MachineAuTime' => 81221130018,
'NayaxTransactionId' => 3584701816,
'PaymentMethodID' => 1,
'SiteId' => 1,
'TimeoutMS' => 15000,
'TransactionId' => '12345'
],
'CardData' => [
'BrandInfo' => [
'PrimaryDescription' => 'MASTERCARD',
'PrimaryId' => '8',
'SecondaryDescription' => '',
'SecondaryId' => '0'
],
'CardHolderName' => 'Test Card Holder',
'CardNumber' => '****',
'EntryMode' => 'MCR',
'ExpMonth' => '01',
'ExpYear' => '23'
],
'CustomData' => [
'Actor' => '****',
'Machine' => '****'
],
'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' => 3.9,
'AuthCode' => '12345',
'AuthDateTime' => '12345',
'AuthSource' => '12345',
'IsGatewayTimeout' => false,
'RRN' => '12345',
'SettAmount' => 3.9,
'SettDateTime' => '12345',
'SrvTranId' => '12345',
'Token' => '12345',
'TraceNumber' => '12345'
],
'ReasonCode' => 50
]),
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/Void"
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.9,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": 81221130018,\n \"NayaxTransactionId\": 3584701816,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"12345\"\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 \"Machine\": \"****\"\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\": 3.9,\n \"AuthCode\": \"12345\",\n \"AuthDateTime\": \"12345\",\n \"AuthSource\": \"12345\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"12345\",\n \"SettAmount\": 3.9,\n \"SettDateTime\": \"12345\",\n \"SrvTranId\": \"12345\",\n \"Token\": \"12345\",\n \"TraceNumber\": \"12345\"\n },\n \"ReasonCode\": 50\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/Void")
.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.9,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": 81221130018,\n \"NayaxTransactionId\": 3584701816,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"12345\"\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 \"Machine\": \"****\"\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\": 3.9,\n \"AuthCode\": \"12345\",\n \"AuthDateTime\": \"12345\",\n \"AuthSource\": \"12345\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"12345\",\n \"SettAmount\": 3.9,\n \"SettDateTime\": \"12345\",\n \"SrvTranId\": \"12345\",\n \"Token\": \"12345\",\n \"TraceNumber\": \"12345\"\n },\n \"ReasonCode\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/CreditCard/Void")
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.9,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": 81221130018,\n \"NayaxTransactionId\": 3584701816,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"12345\"\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 \"Machine\": \"****\"\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\": 3.9,\n \"AuthCode\": \"12345\",\n \"AuthDateTime\": \"12345\",\n \"AuthSource\": \"12345\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"12345\",\n \"SettAmount\": 3.9,\n \"SettDateTime\": \"12345\",\n \"SrvTranId\": \"12345\",\n \"Token\": \"12345\",\n \"TraceNumber\": \"12345\"\n },\n \"ReasonCode\": 50\n}"
response = http.request(request)
puts response.read_body{
"PaymentInfo": {
"AuthAmount": 0.1,
"AuthCode": "333333",
"AuthDateTime": "230221101008",
"AuthSource": "55555",
"IsGatewayTimeout": false,
"RRN": "111111",
"SettAmount": 0.1,
"SettDateTime": "230221101009",
"SrvTranId": "236584335969834429321847829253667359",
"Token": "",
"TraceNumber": "4444"
},
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}Cortina Credit Card Void
curl --request POST \
--url https://{domain}:{port}/Cortina/CreditCard/Void \
--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.9,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": 81221130018,
"NayaxTransactionId": 3584701816,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "12345"
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "MASTERCARD",
"PrimaryId": "8",
"SecondaryDescription": "",
"SecondaryId": "0"
},
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EntryMode": "MCR",
"ExpMonth": "01",
"ExpYear": "23"
},
"CustomData": {
"Actor": "****",
"Machine": "****"
},
"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": 3.9,
"AuthCode": "12345",
"AuthDateTime": "12345",
"AuthSource": "12345",
"IsGatewayTimeout": false,
"RRN": "12345",
"SettAmount": 3.9,
"SettDateTime": "12345",
"SrvTranId": "12345",
"Token": "12345",
"TraceNumber": "12345"
},
"ReasonCode": 50
}
'import requests
url = "https://{domain}:{port}/Cortina/CreditCard/Void"
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.9,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"MachineAuTime": 81221130018,
"NayaxTransactionId": 3584701816,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "12345"
},
"CardData": {
"BrandInfo": {
"PrimaryDescription": "MASTERCARD",
"PrimaryId": "8",
"SecondaryDescription": "",
"SecondaryId": "0"
},
"CardHolderName": "Test Card Holder",
"CardNumber": "****",
"EntryMode": "MCR",
"ExpMonth": "01",
"ExpYear": "23"
},
"CustomData": {
"Actor": "****",
"Machine": "****"
},
"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": 3.9,
"AuthCode": "12345",
"AuthDateTime": "12345",
"AuthSource": "12345",
"IsGatewayTimeout": False,
"RRN": "12345",
"SettAmount": 3.9,
"SettDateTime": "12345",
"SrvTranId": "12345",
"Token": "12345",
"TraceNumber": "12345"
},
"ReasonCode": 50
}
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.9,
CurrencyCode: 'ILS',
CurrencyNumeric: '376',
MachineAuTime: 81221130018,
NayaxTransactionId: 3584701816,
PaymentMethodID: 1,
SiteId: 1,
TimeoutMS: 15000,
TransactionId: '12345'
},
CardData: {
BrandInfo: {
PrimaryDescription: 'MASTERCARD',
PrimaryId: '8',
SecondaryDescription: '',
SecondaryId: '0'
},
CardHolderName: 'Test Card Holder',
CardNumber: '****',
EntryMode: 'MCR',
ExpMonth: '01',
ExpYear: '23'
},
CustomData: {Actor: '****', Machine: '****'},
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: 3.9,
AuthCode: '12345',
AuthDateTime: '12345',
AuthSource: '12345',
IsGatewayTimeout: false,
RRN: '12345',
SettAmount: 3.9,
SettDateTime: '12345',
SrvTranId: '12345',
Token: '12345',
TraceNumber: '12345'
},
ReasonCode: 50
})
};
fetch('https://{domain}:{port}/Cortina/CreditCard/Void', 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/Void",
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.9,
'CurrencyCode' => 'ILS',
'CurrencyNumeric' => '376',
'MachineAuTime' => 81221130018,
'NayaxTransactionId' => 3584701816,
'PaymentMethodID' => 1,
'SiteId' => 1,
'TimeoutMS' => 15000,
'TransactionId' => '12345'
],
'CardData' => [
'BrandInfo' => [
'PrimaryDescription' => 'MASTERCARD',
'PrimaryId' => '8',
'SecondaryDescription' => '',
'SecondaryId' => '0'
],
'CardHolderName' => 'Test Card Holder',
'CardNumber' => '****',
'EntryMode' => 'MCR',
'ExpMonth' => '01',
'ExpYear' => '23'
],
'CustomData' => [
'Actor' => '****',
'Machine' => '****'
],
'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' => 3.9,
'AuthCode' => '12345',
'AuthDateTime' => '12345',
'AuthSource' => '12345',
'IsGatewayTimeout' => false,
'RRN' => '12345',
'SettAmount' => 3.9,
'SettDateTime' => '12345',
'SrvTranId' => '12345',
'Token' => '12345',
'TraceNumber' => '12345'
],
'ReasonCode' => 50
]),
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/Void"
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.9,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": 81221130018,\n \"NayaxTransactionId\": 3584701816,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"12345\"\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 \"Machine\": \"****\"\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\": 3.9,\n \"AuthCode\": \"12345\",\n \"AuthDateTime\": \"12345\",\n \"AuthSource\": \"12345\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"12345\",\n \"SettAmount\": 3.9,\n \"SettDateTime\": \"12345\",\n \"SrvTranId\": \"12345\",\n \"Token\": \"12345\",\n \"TraceNumber\": \"12345\"\n },\n \"ReasonCode\": 50\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/Void")
.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.9,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": 81221130018,\n \"NayaxTransactionId\": 3584701816,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"12345\"\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 \"Machine\": \"****\"\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\": 3.9,\n \"AuthCode\": \"12345\",\n \"AuthDateTime\": \"12345\",\n \"AuthSource\": \"12345\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"12345\",\n \"SettAmount\": 3.9,\n \"SettDateTime\": \"12345\",\n \"SrvTranId\": \"12345\",\n \"Token\": \"12345\",\n \"TraceNumber\": \"12345\"\n },\n \"ReasonCode\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/CreditCard/Void")
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.9,\n \"CurrencyCode\": \"ILS\",\n \"CurrencyNumeric\": \"376\",\n \"MachineAuTime\": 81221130018,\n \"NayaxTransactionId\": 3584701816,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"12345\"\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 \"Machine\": \"****\"\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\": 3.9,\n \"AuthCode\": \"12345\",\n \"AuthDateTime\": \"12345\",\n \"AuthSource\": \"12345\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"12345\",\n \"SettAmount\": 3.9,\n \"SettDateTime\": \"12345\",\n \"SrvTranId\": \"12345\",\n \"Token\": \"12345\",\n \"TraceNumber\": \"12345\"\n },\n \"ReasonCode\": 50\n}"
response = http.request(request)
puts response.read_body{
"PaymentInfo": {
"AuthAmount": 0.1,
"AuthCode": "333333",
"AuthDateTime": "230221101008",
"AuthSource": "55555",
"IsGatewayTimeout": false,
"RRN": "111111",
"SettAmount": 0.1,
"SettDateTime": "230221101009",
"SrvTranId": "236584335969834429321847829253667359",
"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
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
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?