Skip to content

GenerateAuthRequestCryptogram

Source: src/AWS/PaymentCryptography/GenerateAuthRequestCryptogram.ts

Runtime binding for payment-cryptography:GenerateAuthRequestCryptogram — generates an Authorization Request Cryptogram (ARQC) for AS2805 terminal transactions under an EMV issuer master Key. Provide GenerateAuthRequestCryptogramHttp on the Function to satisfy this service.

// init
const generateArqc =
yield* PaymentCryptography.GenerateAuthRequestCryptogram(issuerMasterKey);
// runtime
const generated = yield* generateArqc({
TransactionData: transactionDataHex,
MajorKeyDerivationMode: "EMV_OPTION_A",
SessionKeyDerivationAttributes: {
EmvCommon: { PrimaryAccountNumber: pan, PanSequenceNumber: "00", ApplicationTransactionCounter: "0001" },
},
});