Parameters
The parameters for CSNBTRV.
For the definitions of the return_code, reason_code, exit_data_length, and exit_data parameters, see Parameters common to all verbs.
- rule_array_count
A pointer to an integer variable containing the number of elements in the rule_array variable. This value must be 1 or 2.Direction: Input Type: Integer - rule_array
Keywords that provide control information to the verb. The keywords are left-aligned in an 8-byte field and padded on the right with blanks. The keywords must be in contiguous storage. The rule_array keywords are described in Table 1.Direction: Input Type: String array Table 1. Keywords for Transaction Validation control information Keywords for Transaction Validation control information
Keyword Description Card security code algorithm (One, optional) CSC-V1 Specifies use of CSC version 1.0 algorithm for generating or verifying the validation values. CSC-V2 Specifies use of CSC version 2.0 algorithm for generating or verifying the validation values. American Express® card security codes (One, required) CSC-3 3-digit card security code (CSC) located on the signature panel. VERIFY implied. This is the default. CSC-4 4-digit card security code (CSC) located on the signature panel. VERIFY implied. CSC-5 5-digit card security code (CSC) located on the signature panel. VERIFY implied. CSC-345 Generate 5-byte, 4-byte, or 3-byte values when given an account number and an expiration date. GENERATE implied. Operation (One, optional) VERIFY Specifies verification of the value presented in the validation values variable. GENERATE Specifies generation of the value presented in the validation values variable. - transaction_key_length
The length of the transaction_key parameter.Direction: Input Type: Integer - transaction_key
The label name or internal token of a MAC or MACVER class key. The key can be single or double length.Direction: Input Type: String For a TR-31 key, the token must have the following attributes:
- TR-31 key usage: C0
- Algorithm: D or T
- TR-31 mode of key use: C, G, or V
The mode of key use must match the rule array Operation rule. For VERIFY use C or V, and for GENERATE use C or G.
- transaction_info_length
The length of the transaction_info parameter. For the American Express CSC codes, the length must be 19.Direction: Input Type: Integer - transaction_info
For American Express, this is a 19-byte field containing the concatenation of the 4-byte expiration data (in the format YYMM) and the 15-byte American Express account number. Provide the information in character format.Direction: Input Type: String - validation_values_length
The length of the validation_values parameter. Maximum value for this field is 64.Direction: Input/Output Type: Integer - validation_values
This variable contains American Express CSC values. The data is output for GENERATE and input for VERIFY. See Table 2.Direction: Input Type: String Table 2. Values for Transaction Validation validation_values parameter Values for Transaction Validation validation_values parameter
Operation Element description GENERATE and CSC-345 5555544444333 where: 55555 = CSC 5 value
4444 = CSC 4 value
333 = CSC 3 valueVERIFY and CSC-3 333 = CSC 3 value VERIFY and CSC-4 4444 = CSC 4 value VERIFY and CSC-5 55555 = CSC 5 value