Requirements
To collect customer identifiers, you need to:- Consider data privacy.
- Understand the identifiers you could use.
- Set up webhooks to receive standard webhooks. With this, you receive a webhook event for every payment, regardless of the sales channel. The webhook event contains the payment details, including customer identifiers.
Overview of identifiers
To gain insights and create customer profiles, these are the identifiers you could collect:-
Card alias: a value that uniquely represents the shopper’s card number (PAN), for example
A373176724022941. With this, you can recognize the card that a shopper is using and identify if they are returning customers. You cannot use the card alias for making payments. - Payment Account Reference (PAR): the PAR is an identifier behind the card or NFC wallet. It represents the payment account that the card and/or NFC wallet is linked to. It solves the issue with the PAN not being available for NFC wallet transactions. You can use the PAR to identify the shopper.
- Shopper reference: a unique reference defined by you and stored on the Adyen payments platform. Each shopper reference must have a minimum length of three characters, and should not include personally identifiable information (PII), such as name or email address. With the shopper reference, you can recognize the shopper who makes the purchase. If you collect the shopper’s email address, you can link multiple card aliases, shopper references, and stored payment method identifiers (tokens) to the same shopper through their email address. The shopper reference and the tokens are necessary for making recurring contract payments.
- Shopper email: the shopper’s email address that you collected in some way, and stored on the Adyen payments platform when creating a recurring contract.
- Funding source: funding source of the card, for example debit, credit, or prepaid.
- Issuer country: the two-letter country code and the numeric country code of the country where the card was issued. This is a good indicator of the shopper’s country/region of residence.
Using data from webhooks
To combine data from multiple sales channels, we recommend using standard webhooks for all channels. Standard webhooks are generated on our platform. They have the same format and are delivered in the same way across channels. This makes it easier to set up your integration for collecting data. To receive identifiers asadditionalData included in standard webhooks:
- Set up a standard webhook, if you haven’t done so already.
-
In your Customer Area, open the Standard webhook you set up and select the additional settings you want to receive.
Some of the settings you may want to enable, are:
-
To receive the PAR, or the token variant in standard webhooks, go to Developers > Additional data and enable these identifiers:
When you enable identifiers under Developers > Additional data you also receive these identifiers in your API responses.
Example standard webhook
The following example shows the standard webhook for a point-of-sale payment. The identifiers are in theadditionalData object.
Identifiers in a standard webhook