Address verification system (AVS) checks with the acquiring bank if the address of the cardholder matches the billing address. The acquiring bank provides a score as a result of this verification.Documentation Index
Fetch the complete documentation index at: https://docs.mangopay.com/llms.txt
Use this file to discover all available pages before exploring further.
Guide
Learn more about AVS
Testing values
The AVS feature is testable in Sandbox when making pay-ins in GBP by changing the two first digits of the billing addressPostalCode.
| First 2 digits of the PostalCode | AVSResult |
|---|---|
| 22 | FULL_MATCH |
| 12, 42, 82 | ADDRESS_MATCH_ONLY |
| 21, 24, 28 | POSTAL_CODE_MATCH_ONLY |
| 14, 18, 41, 44, 48, 81, 84, 88 | NO_MATCH |
| 11, any other value | NO_CHECK |
Note –
PostalCode default valueKeep in mind that, by default, the Address information of the Billing parameter inherits the values of the Shipping parameter, if provided, otherwise the user (author).Worked example
PrerequisitesTo go through the worked example below, you need to have everything you usually have for making a pay-in:
- A User object, with a GBP wallet
- A GBP card for the same user
REST
API Response with AVS check