Skip to content

Generate Auth Request Cryptogram

paymentcryptographydataplane_generate_auth_request_cryptogram R Documentation

Generates an Authorization Request Cryptogram (ARQC) for an EMV chip payment card authorization

Description

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

ARQC generation uses an Issuer Master Key (IMK) for application cryptograms (TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS) to derive a session key, which is then used to generate the cryptogram from the provided transaction data (when applicable). To use this operation, you must first create or import an IMK-AC key by calling CreateKey or ImportKey. The KeyModesOfUse should be set to DeriveKey for the IMK-AC encryption key.

This operation is intended for development and testing scenarios only. It is not recommended to use this operation as a substitute for card-based cryptogram generation in production payment flows.

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 supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies.

Related operations:

  • verify_auth_request_cryptogram

Usage

paymentcryptographydataplane_generate_auth_request_cryptogram(
  KeyIdentifier, TransactionData, MajorKeyDerivationMode,
  SessionKeyDerivationAttributes)

Arguments

KeyIdentifier

[required] The keyARN of the IMK-AC (TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS) that Amazon Web Services Payment Cryptography uses to generate the ARQC.

TransactionData

[required] The transaction data that Amazon Web Services Payment Cryptography uses for ARQC generation. The same transaction data is used for ARQC verification by the issuer using verify_auth_request_cryptogram.

MajorKeyDerivationMode

[required] The method to use when deriving the major encryption key for ARQC generation within Amazon Web Services Payment Cryptography.

SessionKeyDerivationAttributes

[required] The attributes and values to use for deriving a session key for ARQC generation within Amazon Web Services Payment Cryptography.

Value

A list with the following syntax:

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

Request syntax

svc$generate_auth_request_cryptogram(
  KeyIdentifier = "string",
  TransactionData = "string",
  MajorKeyDerivationMode = "EMV_OPTION_A"|"EMV_OPTION_B",
  SessionKeyDerivationAttributes = list(
    EmvCommon = list(
      PrimaryAccountNumber = "string",
      PanSequenceNumber = "string",
      ApplicationTransactionCounter = "string"
    ),
    Mastercard = list(
      PrimaryAccountNumber = "string",
      PanSequenceNumber = "string",
      ApplicationTransactionCounter = "string",
      UnpredictableNumber = "string"
    ),
    Emv2000 = list(
      PrimaryAccountNumber = "string",
      PanSequenceNumber = "string",
      ApplicationTransactionCounter = "string"
    ),
    Amex = list(
      PrimaryAccountNumber = "string",
      PanSequenceNumber = "string"
    ),
    Visa = list(
      PrimaryAccountNumber = "string",
      PanSequenceNumber = "string"
    )
  )
)