AVS gives you a way to check if the shopper who is placing the order is the same person as the cardholder, which is more likely if the billing address details match.
Requirements
Before you begin, take into account the following requirements and limitations.How does AVS work?
When a shopper pays for a transaction, you can collect their billing address details. Then, you send that data in thebillingAddress object in the payment authorization request. When you have enabled AVS, the system checks if and to what extent these billing address details match the information that the issuing bank has on file about the holder of the credit card.
The response to the payment request will contain an Adyen AVS response code that is mapped to a raw AVS response code. You can see the mapping in the mapping table.
When the AVS check results in a mismatch, you can trigger a risk rule. You can use the Adyen-provided Address Verification System (AVS) rule, or create a custom post-authorization rule when you have enabled premium features.
Based on the AVS response, you can decide what to do with the payment: you can accept, make an exception, or cancel a transaction.
AVS is supported for card payments with Visa, Mastercard, Discover or American Express. Credit card issuers in the United States, Canada, the United Kingdom, and Europe (Visa only) must support AVS verification requests when you send them in, however, using AVS is not mandatory for you as a merchant.
Enable and test AVS
To be able to trigger AVS and the AVS risk rules, you set up your payment authorization requests to include billing address details. How you do that depends on your integration. Follow the instructions below that are relevant for you.AVS in API requests
- Collect the shopper’s billing address details in your checkout form, and include them in the payment request. If you are using a client-side integration for Web, the Web Drop-in and Card Component can be configured to collect your shopper’s billing address.
-
Send the collected billing address information in the payment authorization request. Provide the full address of the shopper using the
billingAddresschild element:- When you submit the
billingAddressobject for AVS, the following child elements are required:
To qualify for better interchange rates submit the billing address and ZIP code for card not present transactions. This is not guaranteed, contact our Support Team to learn more. - When you submit the
Test AVS results
To test your system’s response to receiving anavsResult:
- Use our provided AVS test cards and billing addresses or create your own test cards.
- Include and define all the required
billingAddressparameters. - Set the value of
streetto Test AVS result. - Set the value of
houseNumberOrNameto the AVS response code that you want to test from the mapping table. This table shows AVS response codes returned by Adyen, which are mapped to raw AVS response codes from acquirers.
Use AVS risk rules
You can enable and use the Adyen-provided Address Verification System (AVS) post-authorization rule. When you have enabled premium features, you can create a post-authorization custom rule. In your custom rule, for the fieldavsResponseCode, you can use the Adyen response values from the mapping table to define the risk rule behavior.
AVS responses and mapping
Different card brands and networks have specific AVS response codes. Many of them are mapped to the response codes that you receive from Adyen. We also have a number of Adyen AVS response codes to accommodate acquirers that send in slightly different raw AVS responses. For the mapping of AVS results for point-of-sale MOTO transactions with AVS, refer to AVS responses for point of sale. If you prefer to receive the actual response code from the card or network, you can turn these on in your Customer Area:- Log in to your Customer Area.
- Go to Developers > Additional data.
- Select the Acquirer result and Raw acquirer result checkboxes.
- Select Save configuration.