Are you looking for test card numbers?

Would you like to contact support?

Default icon

Collect data

Collect customer identifiers to run your own analyses.

When processing payments on the Adyen payments platform, we send you payment details containing data you can use to identify customers. You can import these identifiers into your own data warehouse to create granular customer profiles and gain insights into your customers.

Requirements

To collect customer identifiers, you need to:

  1. Consider data privacy.
  2. Understand the identifiers you could use.
  3. Set up webhooks to receive Standard notifications. Once set up, you receive a notification for every payment, regardless of the sales channel. The notification 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 A37317672402294. With this, you can recognize the card that a shopper is using and identify if they are returning customers. You can't use the card alias for making payments. For NFC wallet transactions, there's no card alias because the PAN is not available.

  • 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.

    Card schemes are starting to adopt the PAR. Currently, we return it for Visa and MasterCard transactions, when available. The PAR can be returned for ecommerce transactions and Terminal API payment requests, but not yet for Terminal API card acquisition requests.
  • Shopper reference: a unique reference defined by you and stored on the Adyen payments platform when creating a recurring contract. 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 and recurring detail references to the same shopper through their email address. The shopper reference is necessary for making recurring contract payments, in addition to the recurring detail reference (the token).

  • 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.

For analysis purposes, you can also collect:

  • 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 of residence.

Using data from webhooks

To combine data from multiple sales channels, we recommend using Standard notification webhooks for all channels. Standard notifications 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 as additionalData included in Standard notification webhooks:

  1. Set up a Standard notification webhook, if you haven't done so already.
  2. In your Customer Area, open the Standard notification you set up and select the additional settings you want to receive. Some of the settings you may want to enable, are:
    Identifier Additional setting to select
    Card alias Include Alias Info
    Funding source Include Funding Source
    Issuer country Include Issuer Country
    PAR Add Payment Account Reference
    Must be enabled under Developers > Additional data too.
    Recurring detail reference
    Can't be enabled in the webhook settings. Must be enabled under Developers > Additional data.
    Shopper email, shopper reference Include Shopper Details
    Token variant Include tokenTxVariant
    Must be enabled under Developers > Additional data too.
  3. To receive the PAR, the token variant, or the recurring detail reference in Standard notifications, go to Developers > Additional data and enable these identifiers:
    Identifier Additional data to select
    PAR Under Acquirer, select Payment account reference
    Token variant Under Card, select Token information for digital wallets
    Recurring detail reference Under Payment, select Recurring details
    When you enable identifiers under Developers > Additional data you also receive these identifiers in your API responses.

Example standard notification

The following example shows the standard notification webhook for a point-of-sale payment. The identifiers are in the additionalData object.

Identifiers in a standard notification webhook
{
    "live": "false",
    "notificationItems": [
        {
            "NotificationRequestItem": {
                "additionalData": {
                    "alias": "M469509594859802",
                    "aliasType": "Default",
                    "authCode": "00",
                    "cardBin": "541333",
                    "cardSummary": "9999",
                    "expiryDate": "02/2028",
                    "fundingSource": "CREDIT",
                    "issuerCountry": "GB",
                    "recurring.shopperReference": "SREF12458",
                    "shopperEmail": "S.Hopper@example.com",
                    "shopperIP": "198.51.100.1",
                    "shopperReference": "SREF12458",
                    "store": "YOUR_STORE",
                    "tenderReference": "CYHG001647245627000",
                    "terminalId": "V400m-346403161"
                },
                "amount": {
                    "currency": "EUR",
                    "value": 12098
                },
                "eventCode": "AUTHORISATION",
                "eventDate": "2021-04-14T15:30:14+02:00",
                "merchantAccountCode": "YOUR_MERCHANT_ACCOUNT",
                "merchantReference": "902",
                "operations": [
                    "CANCEL",
                    "CAPTURE",
                    "REFUND"
                ],
                "paymentMethod": "mc",
                "pspReference": "8825408195409505",
                "reason": "00:9999:02/2028",
                "success": "true"
            }
        }
    ]
}

Using data from Terminal API responses

If you have a point-of-sale integration with our Terminal API, you could use the Terminal API payment responses to collect customer data. The same identifiers that are returned in Standard notification webhooks, are also returned in Terminal API payment responses. However, the format is different.

Refer to Receiving identifiers in Terminal API responses for more information and an example.

See also