Skip to content

Verify Auth Request Cryptogram

paymentcryptographydataplane_verify_auth_request_cryptogram R Documentation

Verifies Authorization Request Cryptogram (ARQC) for a EMV chip payment card authorization

Description

Verifies Authorization Request Cryptogram (ARQC) for a EMV chip payment card authorization. For more information, see Verify auth request cryptogram in the Amazon Web Services Payment Cryptography User Guide.

ARQC generation is done outside of Amazon Web Services Payment Cryptography and is typically generated on a point of sale terminal for an EMV chip card to obtain payment authorization during transaction time. For ARQC verification, you must first import the ARQC generated outside of Amazon Web Services Payment Cryptography by calling ImportKey. This operation uses the imported ARQC and an major encryption key (DUKPT) created by calling CreateKey to either provide a boolean ARQC verification result or provide an APRC (Authorization Response Cryptogram) response using Method 1 or Method 2. The ARPC_METHOD_1 uses AuthResponseCode to generate ARPC and ARPC_METHOD_2 uses CardStatusUpdate to generate ARPC.

For information about valid keys for this operation, see Understanding key attributes and Key types for specific data operations in the Amazon Web Services Payment Cryptography User Guide.

Cross-account use: This operation can't be used across different Amazon Web Services accounts.

Related operations:

  • verify_card_validation_data

  • verify_pin_data

Usage

paymentcryptographydataplane_verify_auth_request_cryptogram(
  AuthRequestCryptogram, AuthResponseAttributes, KeyIdentifier,
  MajorKeyDerivationMode, SessionKeyDerivationAttributes, TransactionData)

Arguments

AuthRequestCryptogram

[required] The auth request cryptogram imported into Amazon Web Services Payment Cryptography for ARQC verification using a major encryption key and transaction data.

AuthResponseAttributes

The attributes and values for auth request cryptogram verification. These parameters are required in case using ARPC Method 1 or Method 2 for ARQC verification.

KeyIdentifier

[required] The keyARN of the major encryption key that Amazon Web Services Payment Cryptography uses for ARQC verification.

MajorKeyDerivationMode

[required] The method to use when deriving the major encryption key for ARQC verification within Amazon Web Services Payment Cryptography. The same key derivation mode was used for ARQC generation outside of Amazon Web Services Payment Cryptography.

SessionKeyDerivationAttributes

[required] The attributes and values to use for deriving a session key for ARQC verification within Amazon Web Services Payment Cryptography. The same attributes were used for ARQC generation outside of Amazon Web Services Payment Cryptography.

TransactionData

[required] The transaction data that Amazon Web Services Payment Cryptography uses for ARQC verification. The same transaction is used for ARQC generation outside of Amazon Web Services Payment Cryptography.

Value

A list with the following syntax:

list(
  AuthResponseValue = "string",
  KeyArn = "string",
  KeyCheckValue = "string"
)

Request syntax

svc$verify_auth_request_cryptogram(
  AuthRequestCryptogram = "string",
  AuthResponseAttributes = list(
    ArpcMethod1 = list(
      AuthResponseCode = "string"
    ),
    ArpcMethod2 = list(
      CardStatusUpdate = "string",
      ProprietaryAuthenticationData = "string"
    )
  ),
  KeyIdentifier = "string",
  MajorKeyDerivationMode = "EMV_OPTION_A"|"EMV_OPTION_B",
  SessionKeyDerivationAttributes = list(
    Amex = list(
      PanSequenceNumber = "string",
      PrimaryAccountNumber = "string"
    ),
    Emv2000 = list(
      ApplicationTransactionCounter = "string",
      PanSequenceNumber = "string",
      PrimaryAccountNumber = "string"
    ),
    EmvCommon = list(
      ApplicationTransactionCounter = "string",
      PanSequenceNumber = "string",
      PrimaryAccountNumber = "string"
    ),
    Mastercard = list(
      ApplicationTransactionCounter = "string",
      PanSequenceNumber = "string",
      PrimaryAccountNumber = "string",
      UnpredictableNumber = "string"
    ),
    Visa = list(
      PanSequenceNumber = "string",
      PrimaryAccountNumber = "string"
    )
  ),
  TransactionData = "string"
)