Seven things to check when a Mastercard CPV sample is rejected

By · published · technically reviewed

Runs in your browser. This page loads no analytics or third-party scripts and does not send what you type.

Mastercard’s Card Personalization Validation (CPV) checks that a personalized card sample matches its declared profile and Mastercard’s personalization requirements. When a sample is rejected, the report names the failing items; the work is to trace each one back to the profile, the personalization data or the submission.

The seven areas below are the ones to check first. They are not Mastercard’s list of test cases; the CPV documentation and the rejection report are the reference for what was tested.

1. Profile and personalization disagree

A data element is declared in the profile but absent from the card, or present with a different value, or present on the card but not in the profile. Decode the personalization data and compare it with the profile element by element before submission.

2. The IAD and the CVN

The CVN in the Issuer Application Data (9F10) must be the one the profile declares, and the IAD’s length and layout must be the ones that version defines. A sample personalized from another product’s template can fail here.

3. The CVM list

The CVM list (8E) starts with two 4-byte amount fields (X and Y), followed by 2-byte rules. Check that the list is well formed, that each rule’s method and condition codes are valid, that the order of the rules is the intended one, and that the list matches the product’s declared cardholder verification methods.

4. Cryptograms and keys

If the sample is personalized with the agreed test keys, its cryptograms should verify under the declared CVN. Check an ARQC from the sample with the ARQC verifier and the test keys (it computes the EMV common session key, not the older Mastercard-specific derivation of CVN 12 and 13), and confirm each key by its KCV (personalization data usually carries the key check values next to the encrypted keys).

5. The AFL and the records

The AFL (94) lists a record that does not exist, a record exists that the AFL does not list, or the number of records marked for offline data authentication is not what the certificates were computed over. The AFL builder lists the records in order and builds the static data to be authenticated, and the EMV certificate validator checks the ICC certificate hash against it.

6. Contact and contactless parameters

On a dual-interface card, check the parameters of each interface (for example its AIP and its cardholder verification settings) against the values the profile declares for that interface.

7. Declaration and sample disagree

The declaration describes something different from the sample that was submitted: another product, another chip, another profile version. This needs a corrected declaration or a new sample, not a change to the card.

Check the personalization file before you submit

The DGI decoder splits a CPS personalization stream or file into its DGIs, decodes the records, and shows which of the common DGIs from EMV CPS Annex A are present. It checks presence, not contents, and it is not a scheme requirement list.

Input

CPS / STORE DATA DGI blocks.
Key handling

5 DGIs decoded.

Result

Decoded DGIs (5)
0101: Record data: SFI 1, record 1 (template 70) [16]
CPS record DGI
70:READ RECORD Response Message Template
9102: SELECT response data (FCI Proprietary Template A5) [12]
CPS Annex A Table 14 / Table 19
A5:File Control Information (FCI) Proprietary Template
9104: GET PROCESSING OPTIONS response data (AIP, AFL) [10]
CPS Annex A Table 15
82:Application Interchange Profile (AIP) · 94:Application File Locator (AFL)
8000: DES keys: UDK, MAC key, ENC key [16]
CPS Annex A Table 2
Encrypted data hidden (16 bytes)
9000: Key check values for the DES keys in DGI 8000 [3]
CPS Annex A Table 3 (not encrypted)
Key check values (3 bytes each, in key order): 08D7B4
Presence check: CPS common DGIs, payment application

5/5 listed DGIs found with data

✓ Every DGI on this list is in the stream and carries data

This only checks which common CPS DGI identifiers are present. It does not check their contents and is not a scheme requirement list; use the personalization specification of the applicable scheme and profile.

IDNTEQ reviews rejection reports and proposes corrections as part of CPV / PVT preparation and remediation.

References

See also

Related tools