/AWS1/CL_PCD=>GENERATECARDVALIDATIONDATA()
¶
About GenerateCardValidationData¶
Generates card-related validation data using algorithms such as Card Verification Values (CVV/CVV2), Dynamic Card Verification Values (dCVV/dCVV2), or Card Security Codes (CSC). For more information, see Generate card data in the Amazon Web Services Payment Cryptography User Guide.
This operation generates a CVV or CSC value that is printed on a payment credit or debit card during card production. The CVV or CSC, PAN (Primary Account Number) and expiration date of the card are required to check its validity during transaction processing. To begin this operation, a CVK (Card Verification Key) encryption key is required. You can use CreateKey or ImportKey to establish a CVK within Amazon Web Services Payment Cryptography. The KeyModesOfUse
should be set to Generate
and Verify
for a CVK encryption key.
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:
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_KEYIDENTIFIER
TYPE /AWS1/PCDKEYARNORKEYALIASTYPE
/AWS1/PCDKEYARNORKEYALIASTYPE
¶
The
keyARN
of the CVK encryption key that Amazon Web Services Payment Cryptography uses to generate card data.
IV_PRIMARYACCOUNTNUMBER
TYPE /AWS1/PCDNOLENGTHBETWEEN12AN00
/AWS1/PCDNOLENGTHBETWEEN12AN00
¶
The Primary Account Number (PAN), a unique identifier for a payment credit or debit card that associates the card with a specific account holder.
IO_GENERATIONATTRIBUTES
TYPE REF TO /AWS1/CL_PCDCARDGENERATIONAT00
/AWS1/CL_PCDCARDGENERATIONAT00
¶
The algorithm for generating CVV or CSC values for the card within Amazon Web Services Payment Cryptography.
Optional arguments:¶
IV_VALIDATIONDATALENGTH
TYPE /AWS1/PCDINTEGERRANGEBETWEEN00
/AWS1/PCDINTEGERRANGEBETWEEN00
¶
The length of the CVV or CSC to be generated. The default value is 3.