> ## Documentation Index
> Fetch the complete documentation index at: https://kb.paymentsmojo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Address and CVV checks

> What avsResp and cvvResp mean.

When a card isn't present, or the terminal asks for it, the customer's ZIP code and security code are checked with the
card issuer. The results come back in `avsResp` and `cvvResp`. A failed check doesn't always decline the payment on
its own: the issuer decides, and a location can require the CVV or ZIP code ([terminal settings](https://kb.paymentsmojo.com/api/terminal-settings.md)).

## Address check: avsResp

Letters vary a little by card brand and processor; these are the common ones.

| `avsResp` | Street address | ZIP code | Notes |
| - | - | - | - |
| `Y` | Matches | Matches (5 digits) | Full match. |
| `X` | Matches | Matches (9 digits) | Full match (Visa, Mastercard, Discover). |
| `D`, `F` | Matches | Matches | Full match, card issued outside the US (Visa). |
| `A` | Matches | Doesn't match | On Discover, `A` means both match. |
| `Z` | Doesn't match | Matches | |
| `W` | Doesn't match | Matches (9 digits) | Discover, Mastercard. |
| `P` | Couldn't be compared | Matches | Card issued outside the US (Visa). |
| `N` | Doesn't match | Doesn't match | Neither matches. |
| `R` | – | – | The check was unavailable: try again. |
| `S` | – | – | The issuer doesn't check addresses. |
| `U` | – | – | No address information from the issuer. |
| `G` | – | – | A non-US card the check couldn't verify. |
| blank | – | – | No address check was made. |

## Security code check: cvvResp

The CVV is the 3 or 4 digits on the card (Visa CVV2, Mastercard CVC2, American Express CID). Most issuers decline when it
doesn't match.

| `cvvResp` | Means |
| - | - |
| `M` | Matches. |
| `N` | Doesn't match. |
| `P` | Not processed. |
| `S` | The merchant said the card has no CVV. |
| `U` | The issuer doesn't check CVVs. |
| `X` | No answer from the issuer. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.