Address verification system (AVS) is an anti-fraud tool used in the UK, US, and Canada for online payments by Visa, Mastercard, and AMEX. The system checks with the bank if the address of the cardholder matches the billing address (provided via the API in the pay-in call). The acquiring bank provides a score as a result of this verification. Based on the score provided by the bank, Mangopay provides a specific value in theDocumentation Index
Fetch the complete documentation index at: https://docs.mangopay.com/llms.txt
Use this file to discover all available pages before exploring further.
AVSResult parameter for you to act upon.
| AVS Result | Description |
|---|---|
| FULL_MATCH | The user Address and the address registered on the bank side are exactly the same. |
| ADDRESS_MATCH_ONLY | Only the street names are a match (AddressLine1 and AddressLine2). Postal codes don’t match. |
| POSTAL_CODE_MATCH_ONLY | Only the postal codes are a match (PostalCode). The street names don’t match. |
| NO_MATCH | Both street names and postal codes don’t match. |
| NO_CHECK | No check has been done.This may be due to:
|
Best practice - Implement an AVS result-based payment flowIn order to make the most of this feature:
- Make the user
Addressmandatory in your implementation - Adapt your flow by adding conditions dependent on the AVS result.
- Make a preauthorization
- Check the
AVSResultCapture the preauthorized funds based on the AVS result
Related resources
Testing
Test AVS using mocks