GetAuthorized

Arguments

GetAuthorized takes two parameters: a hash of arguments and a callback.

FieldTypeRequired?Max. lengthOriginal Redecard FieldDescription
amountmoneyYes10TOTALSales total amount
typezpad2Yes2TRANSACAOTransaction type code
installmentszpad2Yes2PARCELASNumber of installments
supplierIdzpad9Yes9FILIACAOSupplying store membership number
orderIdstringYes16NUMPEDIDOOrder number generated by the merchant
cardNumberdigitsYes16NRCARTAOCard number
cardCodedigitsYes3CVC2Card CVC2
cardExpMonthmonthYes2MESCard expiration month
cardExpYearyearYes2ANOCard expiration year
cardFullNamestringYes50PORTADORCardholder name
iatastringYes9IATAAirline: IATA code
distributorIdstringYes9DISTRIBUIDORMembership number of distributing store / card issuer, when B2B
concentradorIdstringYes5CONCENTRADORN/A – Send parameter blank
boardingFeemoneyYes10TAXAEMBARQUEAirline: Boarding fee
checkinFeemoneyYes10ENTRADAAirline: Check-in fee
docNum1stringYes16NUMDOC1Airline: ticket number of the main passenger
docNum2stringYes16NUMDOC2Airline: ticket number of the second passenger
docNum3stringYes16NUMDOC3Airline: ticket number of the third passenger
docNum4stringYes16NUMDOC4Airline: ticket number of the fourth passenger
pax1stringYes26PAX1Airline: The name of the main passenger
pax2stringYes26PAX2Airline: The name of the second passenger
pax3stringYes26PAX3Airline: The name of the third passenger
pax4stringYes26PAX4Airline: The name of the fourth passenger
autoConfirmbooleanYes1CONFTXNAuto-confirm transaction?
addDataTststringYes0ADDDataOnly for Airline Companies, Hotels and Car Rental merchants
additionalDatastringYes0ADD_DataOnly for Airline Companies, Hotels and Car Rental merchants

Callback

Callback function receives ```err``` and a hash of return values.

FieldTypeOriginal Redecard FieldDescription
codeintegerCODRETReturn code
messageurlencodedMSGRETReturn code description
datedateDATATransaction date
orderIdstringNUMPEDIDOOrder number
authorizationIdstringNUMAUTORAuthorization number
receiptIdstringNUMCVSales receipt number
authenticationIdstringNUMAUTENTAuthentication number
uniqSeqstringNUMSQNUnique sequential number
countryCodestringORIGEM_BINCode of issuer country, 2-letter or 3-letter ISO country code
distributorIdstringDISTRIBUIDORMembership number of distributor / cardholder, when B2B
iatastringIATAIATA
autoConfirmCodeintegerCONFCODRETAutomatic confirmation return code
autoConfirmMessageurlencodedCONFMSGRETReturn code description

ConfirmTxn

Arguments

ConfirmTxn takes two parameters: a hash of arguments and a callback.

FieldTypeRequired?Max. lengthOriginal Redecard FieldDescription
datedateYes8DATATransaction date
uniqSeqstringYes12NUMSQNUnique sequential number
receiptIdstringYes9NUMCVSales receipt number
authorizationIdstringYes6NUMAUTORAuthorization number
installmentszpad2Yes2PARCELASNumber of installments
typezpad2Yes2TRANSORIGTransaction type code
amountmoneyYes10TOTALSales total amount
supplierIdzpad9Yes9FILIACAOSupplying store membership number
distributorIdstringYes9DISTRIBUIDORMembership number of distributing store / card issuer, when B2B
orderIdstringYes16NUMPEDIDOOrder number generated by the merchant
docNum1stringYes16NUMDOC1Airline: ticket number of the main passenger
docNum2stringYes16NUMDOC2Airline: ticket number of the second passenger
docNum3stringYes16NUMDOC3Airline: ticket number of the third passenger
docNum4stringYes16NUMDOC4Airline: ticket number of the fourth passenger
pax1stringYes26PAX1Airline: The name of the main passenger
pax2stringYes26PAX2Airline: The name of the second passenger
pax3stringYes26PAX3Airline: The name of the third passenger
pax4stringYes26PAX4Airline: The name of the fourth passenger
additionalDatastringYes0AddDataOnly for Airline Companies, Hotels and Car Rental merchants

Callback

Callback function receives ```err``` and a hash of return values.

FieldTypeOriginal Redecard FieldDescription
codeintegerCODRETReturn code
messagestringMSGRETReturn message
orderIdstringNUMPEDIDOOrder number