VerifyAuthRequestCryptogram
Source:
src/AWS/PaymentCryptography/VerifyAuthRequestCryptogram.ts
Runtime binding for payment-cryptography:VerifyAuthRequestCryptogram —
verifies an Authorization Request Cryptogram (ARQC) during EMV transaction
processing under an issuer master Key, optionally producing the
Authorization Response Cryptogram (ARPC). A mismatch fails with the typed
VerificationFailedException. Provide VerifyAuthRequestCryptogramHttp
on the Function to satisfy this service.
EMV Cryptograms
Section titled “EMV Cryptograms”// initconst verifyArqc = yield* PaymentCryptography.VerifyAuthRequestCryptogram(issuerMasterKey);
// runtimeconst verified = yield* verifyArqc({ TransactionData: transactionDataHex, AuthRequestCryptogram: arqc, MajorKeyDerivationMode: "EMV_OPTION_A", SessionKeyDerivationAttributes: { EmvCommon: { PrimaryAccountNumber: pan, PanSequenceNumber: "00", ApplicationTransactionCounter: "0001" }, }, AuthResponseAttributes: { ArqcMethod1: { AuthResponseCode: "0000" } },});