Prepaid card- Authorization- WIP!

The terminal uses the Authorization command to notify the integrator about the result of a card tap in order to initiate the authorization process with the Cortina payment provider.

This command is essential for proceeding to transaction confirmation or rejection handling.

Request

Nayax's servers send a POST request to your configured Authoirzation endpoint, which would be of the following format:

(customer's URL)/Cortina/PrePaid/Authorization

The payload includes the full result of the card scan operation:

{
"BasicInfo": {
"TransactionId": "N99O4XURDQYJZIK4OTCAWF1RHHA40TZWVCRB",
"NayaxTransactionId": 3584697384,
"Amount": 5,
"CurrencyCode": "ILS",
"CurrencyNumeric": "376",
"SiteId": 1,
"MachineAuTime": "071221132914",
"TimeoutMS": 15000,
"IsProductSelected": true,
"PaymentMethodID": 1,
"BillingProviderId": 1,
"AuditNumber": 342,
"NayaxRRN": "111111",
"IsDeferredAuthorization": true,
"AgeLimitation": 18,
"IsSoftDeclineCompletion": true,
"TransitElement": {}
},
"DeviceInfo": {
"HwSerial": "0434324119376526",
"FWVersion": "4.0.0.22-RC01 - Aug 25 2021",
"Type": "Onyx"
},
"MachineInfo": {
"Id": 106791869,
"Name": "Itai_TestPayCC V2",
"ExternalId": "OperatorExternalID",
"Type": "machine type",
"TerminalId": "8888888844",
"DecimalPlace": 2,
"Offset": "3.00",
"GroupId": "String",
"OperatorId": 2001537302,
"Region": "EU",
"City": "Abbeville",
"ZipCode": "22448Z",
"Country": {},
"GeoLocation": {}
},
"ActorInfo": {
"Id": 2001537302,
"Name": "TestPayCC V2 OP",
"OperatorId": 2001537302,
"OperatorName": "TestPayCC V2 OP _ Sub Merchant",
"MerchantId": 999999888885,
"DynamicURL": "https://www.nayax.com/alternativeURL",
"Country": {},
"GeoLocation": {},
"MCC": 455,
"SubMerchantId": 999999888886
},
"CustomData": {
"DirectActor": "String",
"Operator": "String",
"Distributor": "String",
"Actor": "String",
"Machine": "String",
"SoftDecline": "String"
},
"CardData": {
"CardNumber": "****",
"EntryMode": "MCR",
"ExpYear": "23",
"ExpMonth": "01",
"EMVData": "string",
"CVV2": "****",
"IDNumber": "****",
"RandomNumber": "string",
"BrandInfo": {},
"CardHolderName": "Test Card Holder",
"IsDebitCard": true
},
"PaymentInfo": {
"SrvTranId": "3584697388",
"AuthCode": "333333",
"AuthAmount": 5.5,
"SettAmount": 5.5,
"RRN": "111111",
"Token": "string",
"AuthDateTime": "071221133300",
"SettDateTime": "071221133330",
"TraceNumber": "4444",
"AuthSource": "string",
"AdditionalData": "string",
"IsGatewayTimeout": false,
"ProviderExternalData": "string",
"InitiateTranReference": 11223344,
"IsRevalueCard": false
}
}

Request Parameters- WIP!!!

The table below describes all the parameters of the request:

FieldTypeRequiredDescription
NayaxTransactionIdIntegerYesInternal Nayax transaction ID.
SparkTransactionIdStringYesUnique session ID generated in StartAuthentication.
SiteIdIntegerYesID of the vending site or Spark location.
TerminalIdStringYesUnique ID of the terminal that read the card.
MachineIdIntegerYesIdentifier of the vending machine or device.
HwSerialStringYesHardware serial number of the terminal.
AuthStatusObjectYesCard authorization result.
AuthStatus.VerdictStringYesAuthorization decision (Approved, Declined, etc.).
AuthStatus.ErrorCodeIntegerNoAn optional error code if the card was declined.
AuthStatus.ErrorDescriptionStringNoExplanation of the error, if any.
AuthStatus.StatusMessageStringNoStatus message returned by Spark.
CardLast4DigitsStringYesThe last four digits of the presented card.
CardHashStringYesOne-way hash of the full card number.
CardUidStringYesUID of the card (for prepaid cards). See a more detailed explanation on the SMC Support page.
MachineAuTimeStringYesTimestamp from the machine in the format yyyyMMddHHmmssSSS.
AmountIntegerYesTransaction amount in the smallest currency unit (e.g., cents)
CardBrandStringNoCard brand used (e.g., Visa, MasterCard).
CardFirst6DigitsStringNoThe first 6 digits of the credit card (card BIN).
AuthCodeStringNoAuthorization code returned by the payment provider.
AuTimeStringNoAuthorization server timestamp.
CurrencyCodeStringNoISO currency code (e.g., "EUR").
CurrencyNumericStringNoISO 4217 numeric code (e.g., "978").
FiscalRrnStringNoFiscal reference number for accounting/reporting.
NayaxRRNStringNoInternal Nayax settlement reference number.

Response

WIP!