Skip to content
EMV Tools

Tools

CAVV and AAV decoder (3-D Secure)

When you pay online, 3-D Secure (3DS) lets the card issuer check that you are the cardholder, for example with a code or a banking app. When the check is done, the issuer returns a proof value: Visa calls it CAVV (Cardholder Authentication Verification Value) and Mastercard calls it AAV (Accountholder Authentication Value).

The merchant receives it as a 28-character Base64 string and sends it in the authorization together with the electronic commerce indicator (ECI), which says how the cardholder was authenticated. Visa carries the CAVV as 20 bytes in field 126.9 of its authorization messages.

Developers decode it to check that the value travelled whole: a CAVV has 20 bytes and a current Mastercard AAV (SPA2) has 21. Decoding it twice or cutting a byte is a common cause of declines. Only the issuer can validate it, with secret keys; this tool shows its structure and nothing else.

Worked example: the synthetic value jHyn+7YFi1EUAREAAAAvOptcHQI= decodes to 20 bytes that start with 8C. That is the layout of a Mastercard SPA AAV from 3-D Secure 1.0 for an authenticated cardholder: ACS 1, password, key 1, and transaction sequence number 47.

New to EMV? Read EMV in 5 minutes or browse the glossary

Everything runs in your browser. Nothing you enter leaves this page.

Paste the value from the 3-D Secure response or the authorization log. Spaces and line breaks are ignored.

Electronic commerce indicator (ECI)

The ECI travels next to the CAVV or AAV and tells the issuer how the cardholder was authenticated.

SchemeECIMeaning
Visa05Cardholder authenticated
Visa06Authentication attempted
Visa07Not authenticated
Mastercard02Cardholder authenticated
Mastercard01Authentication attempted
Mastercard00Not authenticated

Visa CAVV results codes

In the authorization response, Visa returns a one-character code in field 44.13 that says whether the CAVV passed validation.

CodeMeaning
BlankNo CAVV in the message, or the issuer did not ask for validation
0The CAVV could not be validated, or it was missing
1Validation failed for an authenticated transaction
2Validation passed for an authenticated transaction
3Validation passed for an attempt
4Validation failed for an attempt
6Not validated because the issuer does not take part
7Validation failed for an attempt
8Validation passed for an attempt
9Validation failed for an attempt
AValidation passed for an attempt
BValidation passed, without chargeback protection
CNot validated for an attempt, although the issuer asked for validation
DNot validated for an authenticated transaction, although the issuer asked for validation

ECI values and results codes come from public Visa and processor documents. Liability rules change: check them against the current scheme rules.