curl --request POST \
--url https://{domain}:{port}/Cortina/CreditCard/Refund \
--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": "201121220429",
"NayaxTransactionId": 3584667527,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV"
},
"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": ""
},
"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": 0,
"Name": "Itai_TestPayCC V2",
"Offset": "3.00",
"TerminalId": "8888888844",
"ZipCode": "54321"
},
"PaymentInfo": {
"AuthAmount": 3.9,
"AuthCode": "333333",
"AuthDateTime": "201121220429",
"AuthSource": "55555",
"IsGatewayTimeout": false,
"RRN": "111111",
"SettAmount": 3.9,
"SettDateTime": "11/20/2021 7",
"SrvTranId": "S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
},
"ReasonCode": 12,
"ReasonText": "Cashless Refunded by Operator"
}
'import requests
url = "https://{domain}:{port}/Cortina/CreditCard/Refund"
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": "201121220429",
"NayaxTransactionId": 3584667527,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV"
},
"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": ""
},
"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": 0,
"Name": "Itai_TestPayCC V2",
"Offset": "3.00",
"TerminalId": "8888888844",
"ZipCode": "54321"
},
"PaymentInfo": {
"AuthAmount": 3.9,
"AuthCode": "333333",
"AuthDateTime": "201121220429",
"AuthSource": "55555",
"IsGatewayTimeout": False,
"RRN": "111111",
"SettAmount": 3.9,
"SettDateTime": "11/20/2021 7",
"SrvTranId": "S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
},
"ReasonCode": 12,
"ReasonText": "Cashless Refunded by Operator"
}
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: '201121220429',
NayaxTransactionId: 3584667527,
PaymentMethodID: 1,
SiteId: 1,
TimeoutMS: 15000,
TransactionId: 'S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV'
},
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: ''},
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: 0,
Name: 'Itai_TestPayCC V2',
Offset: '3.00',
TerminalId: '8888888844',
ZipCode: '54321'
},
PaymentInfo: {
AuthAmount: 3.9,
AuthCode: '333333',
AuthDateTime: '201121220429',
AuthSource: '55555',
IsGatewayTimeout: false,
RRN: '111111',
SettAmount: 3.9,
SettDateTime: '11/20/2021 7',
SrvTranId: 'S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV',
Token: 'Cortina V2 Stub Tester Token',
TraceNumber: '4444'
},
ReasonCode: 12,
ReasonText: 'Cashless Refunded by Operator'
})
};
fetch('https://{domain}:{port}/Cortina/CreditCard/Refund', 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/Refund",
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' => '201121220429',
'NayaxTransactionId' => 3584667527,
'PaymentMethodID' => 1,
'SiteId' => 1,
'TimeoutMS' => 15000,
'TransactionId' => 'S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV'
],
'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' => ''
],
'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' => 0,
'Name' => 'Itai_TestPayCC V2',
'Offset' => '3.00',
'TerminalId' => '8888888844',
'ZipCode' => '54321'
],
'PaymentInfo' => [
'AuthAmount' => 3.9,
'AuthCode' => '333333',
'AuthDateTime' => '201121220429',
'AuthSource' => '55555',
'IsGatewayTimeout' => false,
'RRN' => '111111',
'SettAmount' => 3.9,
'SettDateTime' => '11/20/2021 7',
'SrvTranId' => 'S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV',
'Token' => 'Cortina V2 Stub Tester Token',
'TraceNumber' => '4444'
],
'ReasonCode' => 12,
'ReasonText' => 'Cashless Refunded by Operator'
]),
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/Refund"
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\": \"201121220429\",\n \"NayaxTransactionId\": 3584667527,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV\"\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\": \"\"\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\": 0,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"TerminalId\": \"8888888844\",\n \"ZipCode\": \"54321\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 3.9,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"201121220429\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 3.9,\n \"SettDateTime\": \"11/20/2021 7\",\n \"SrvTranId\": \"S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 12,\n \"ReasonText\": \"Cashless Refunded by Operator\"\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/Refund")
.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\": \"201121220429\",\n \"NayaxTransactionId\": 3584667527,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV\"\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\": \"\"\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\": 0,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"TerminalId\": \"8888888844\",\n \"ZipCode\": \"54321\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 3.9,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"201121220429\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 3.9,\n \"SettDateTime\": \"11/20/2021 7\",\n \"SrvTranId\": \"S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 12,\n \"ReasonText\": \"Cashless Refunded by Operator\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/CreditCard/Refund")
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\": \"201121220429\",\n \"NayaxTransactionId\": 3584667527,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV\"\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\": \"\"\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\": 0,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"TerminalId\": \"8888888844\",\n \"ZipCode\": \"54321\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 3.9,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"201121220429\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 3.9,\n \"SettDateTime\": \"11/20/2021 7\",\n \"SrvTranId\": \"S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 12,\n \"ReasonText\": \"Cashless Refunded by Operator\"\n}"
response = http.request(request)
puts response.read_body{
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}Cortina Credit Card Refund
curl --request POST \
--url https://{domain}:{port}/Cortina/CreditCard/Refund \
--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": "201121220429",
"NayaxTransactionId": 3584667527,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV"
},
"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": ""
},
"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": 0,
"Name": "Itai_TestPayCC V2",
"Offset": "3.00",
"TerminalId": "8888888844",
"ZipCode": "54321"
},
"PaymentInfo": {
"AuthAmount": 3.9,
"AuthCode": "333333",
"AuthDateTime": "201121220429",
"AuthSource": "55555",
"IsGatewayTimeout": false,
"RRN": "111111",
"SettAmount": 3.9,
"SettDateTime": "11/20/2021 7",
"SrvTranId": "S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
},
"ReasonCode": 12,
"ReasonText": "Cashless Refunded by Operator"
}
'import requests
url = "https://{domain}:{port}/Cortina/CreditCard/Refund"
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": "201121220429",
"NayaxTransactionId": 3584667527,
"PaymentMethodID": 1,
"SiteId": 1,
"TimeoutMS": 15000,
"TransactionId": "S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV"
},
"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": ""
},
"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": 0,
"Name": "Itai_TestPayCC V2",
"Offset": "3.00",
"TerminalId": "8888888844",
"ZipCode": "54321"
},
"PaymentInfo": {
"AuthAmount": 3.9,
"AuthCode": "333333",
"AuthDateTime": "201121220429",
"AuthSource": "55555",
"IsGatewayTimeout": False,
"RRN": "111111",
"SettAmount": 3.9,
"SettDateTime": "11/20/2021 7",
"SrvTranId": "S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV",
"Token": "Cortina V2 Stub Tester Token",
"TraceNumber": "4444"
},
"ReasonCode": 12,
"ReasonText": "Cashless Refunded by Operator"
}
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: '201121220429',
NayaxTransactionId: 3584667527,
PaymentMethodID: 1,
SiteId: 1,
TimeoutMS: 15000,
TransactionId: 'S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV'
},
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: ''},
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: 0,
Name: 'Itai_TestPayCC V2',
Offset: '3.00',
TerminalId: '8888888844',
ZipCode: '54321'
},
PaymentInfo: {
AuthAmount: 3.9,
AuthCode: '333333',
AuthDateTime: '201121220429',
AuthSource: '55555',
IsGatewayTimeout: false,
RRN: '111111',
SettAmount: 3.9,
SettDateTime: '11/20/2021 7',
SrvTranId: 'S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV',
Token: 'Cortina V2 Stub Tester Token',
TraceNumber: '4444'
},
ReasonCode: 12,
ReasonText: 'Cashless Refunded by Operator'
})
};
fetch('https://{domain}:{port}/Cortina/CreditCard/Refund', 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/Refund",
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' => '201121220429',
'NayaxTransactionId' => 3584667527,
'PaymentMethodID' => 1,
'SiteId' => 1,
'TimeoutMS' => 15000,
'TransactionId' => 'S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV'
],
'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' => ''
],
'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' => 0,
'Name' => 'Itai_TestPayCC V2',
'Offset' => '3.00',
'TerminalId' => '8888888844',
'ZipCode' => '54321'
],
'PaymentInfo' => [
'AuthAmount' => 3.9,
'AuthCode' => '333333',
'AuthDateTime' => '201121220429',
'AuthSource' => '55555',
'IsGatewayTimeout' => false,
'RRN' => '111111',
'SettAmount' => 3.9,
'SettDateTime' => '11/20/2021 7',
'SrvTranId' => 'S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV',
'Token' => 'Cortina V2 Stub Tester Token',
'TraceNumber' => '4444'
],
'ReasonCode' => 12,
'ReasonText' => 'Cashless Refunded by Operator'
]),
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/Refund"
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\": \"201121220429\",\n \"NayaxTransactionId\": 3584667527,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV\"\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\": \"\"\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\": 0,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"TerminalId\": \"8888888844\",\n \"ZipCode\": \"54321\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 3.9,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"201121220429\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 3.9,\n \"SettDateTime\": \"11/20/2021 7\",\n \"SrvTranId\": \"S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 12,\n \"ReasonText\": \"Cashless Refunded by Operator\"\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/Refund")
.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\": \"201121220429\",\n \"NayaxTransactionId\": 3584667527,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV\"\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\": \"\"\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\": 0,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"TerminalId\": \"8888888844\",\n \"ZipCode\": \"54321\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 3.9,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"201121220429\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 3.9,\n \"SettDateTime\": \"11/20/2021 7\",\n \"SrvTranId\": \"S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 12,\n \"ReasonText\": \"Cashless Refunded by Operator\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/CreditCard/Refund")
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\": \"201121220429\",\n \"NayaxTransactionId\": 3584667527,\n \"PaymentMethodID\": 1,\n \"SiteId\": 1,\n \"TimeoutMS\": 15000,\n \"TransactionId\": \"S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV\"\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\": \"\"\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\": 0,\n \"Name\": \"Itai_TestPayCC V2\",\n \"Offset\": \"3.00\",\n \"TerminalId\": \"8888888844\",\n \"ZipCode\": \"54321\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 3.9,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"201121220429\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 3.9,\n \"SettDateTime\": \"11/20/2021 7\",\n \"SrvTranId\": \"S9IUQSOA46Z7MHZ51JQXB20HWRKEDC1F9LLV\",\n \"Token\": \"Cortina V2 Stub Tester Token\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 12,\n \"ReasonText\": \"Cashless Refunded by Operator\"\n}"
response = http.request(request)
puts response.read_body{
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}Body
Merchant (Actor) details.
Show child attributes
Show child attributes
Basic transaction information.
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
Custom Fields Information, Contact Nayax TPOC to define.
Show child attributes
Show child attributes
Hardware and firmware information of the Nayax device.
Show child attributes
Show child attributes
Contains encryption metadata used for secure transmission.
Show child attributes
Show child attributes
Information about the machine involved in the transaction.
Show child attributes
Show child attributes
Identifies transaction information and references. Included in all response messages for payment calls.
When used in requests (e.g. /Settlement, /Void, /Refund, /Inquiry), this object should match the PaymentInfo returned in a previous call.
Show child attributes
Show child attributes
Response
Success
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?