Requirements
Before you begin, take into account the following requirements and limitations.Data privacy
Because personal data is processed to detect fraudulent payment activity, you have to consider data privacy and adhere to privacy laws. Before processing any shopper data, make sure that you:- Comply with obligations under the applicable privacy laws and regulations. Consult your legal department or an accredited third-party company to understand the data privacy regulations of the countries/regions that you operate in.
- Understand the requirements. Different jurisdictions may require different actions. For example, under European regulations, you are required to ask for your customer’s consent to process their data, and you have to be transparent about the use of that data. You can clarify how data is processed in your privacy and cookie statement. For example, when a shopper lands on the checkout page, your company’s privacy policy could pop up and show a consent checkbox or button. It is your responsibility to keep track of the shoppers who have given consent.
How it works
Adyen collects data about how shoppers interact with and use the payment form. Protect then uses this data to detect fraudulent payment activity, analyze usage patterns, and mitigate fraud. When you use our Web Drop-in or Components or the Custom Card Component for Web to build your checkout experience, or when you are using Hosted Checkout, data is automatically collected from the checkout page and sent to Adyen. When you have built an API-only integration for Web, and have created your own checkout page, you can add a script that calls our standalone data collection SDK to collect the same data, retrieve the data, and then send it to Adyen in the payment request. See Configure data collection for API only for more details. For all Web integrations, you can optionally add the data collection script to other pages than your checkout page, collecting even more data.How Protect uses the data
To detect fraud, and to mitigate the effects of potential fraudulent activity, our latest risk engine uses the data that is collected. This includes the following data:- Device characteristics: for example the shopper’s browser type, screen size, and device type.
- Activity information: for example if credit card details were copied and pasted into the payment form, and the time between payment requests.
Data collected by the SDK
The following data is collected:Configure data collection for Drop-in and Components
Risk data collection is included in the Adyen checkout configuration, and is turned on by default when you build your integration with Web Drop-in or Components, the Custom Card Component or Hosted Checkout. It is a separate setting that is independent of your Protect configuration. It is possible to turn off risk data collection, but this increases the chance that you will be exposed to and experience fraud. To configure risk data collection, include the following in theAdyenCheckout configuration:
Configuration for risk data collection on Web
Collect additional data outside of the checkout page
In addition to the data that you send when the shopper checks out, you can also optionally collect data to detect fraud outside of the checkout page. We recommend that you collect data about the shopper’s activity on every page of your site. To do this, add the following script to any of your web pages. Data collection scriptConfigure data collection for API only
When you have built an API-only integration for Web, and built your own checkout page, you can collect data by following these steps:- Add the script that loads the data collection SDK to the checkout page on your website.
When a shopper interacts with your checkout page, the SDK is loaded and collects data. The collected data is included in the client data when the shopper pays. - Send the data in the payment request.
Add the script to your checkout page
To add the data collection SDK, add a reference to the following script in your checkout page:
Add the reference in the iframe of the page where the shopper enters their payment details.
Example checkout page configuration
Send the data to Adyen
After the data is collected and submitted to your server, you have to include the data in the payment request.- Call the
adyenGetData()method to get the data. This method is included in the SDK. - When you make the /payments request, include the data in
riskData.clientData.