Requirements
Before you begin, take into account the following requirements and preparations.General considerations
To use card and shopper identifiers, you need to:- Know what data you will be handling. Refer to the overview to learn more.
- Understand and manage the privacy implications of using such data.
- Have your own back-end system for storing shopper identifiers and purchase data, like a Customer Relationship Management System (CRM) or other database.
- Implement business logic to get the desired result from this data. For example, to combine data in a way that answers questions about your shoppers.
Customer data and privacy
Before storing any customer data, including payment data, you need to consider data privacy.- Consult your legal department or an accredited third-party company to understand the data privacy regulations of the countries/regions that you operate in.
- Ask for your customer’s explicit permission to store their data, and be clear about what you intend to use it for. For this, you could use the Terms and Conditions on your website, or you can use the payment terminal to interact with the customer.
Overview of card and shopper identifiers
Specific use cases or customer journeys can involve one or more of the following identifiers:- BIN: the Bank Identification Number of the shopper’s card.
-
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. - 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.
- 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.
- Recurring detail reference: the token for making recurring contract payments. The token is generated on the Adyen payments platform and returned in the response for the initial payment. In the recurring payments you use this token instead of actual card details.
- 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.
- Token variant: the type of NFC wallet, like Apple Pay, used in the transaction. Note that this is not the kind of token you can use for making payments. Example value: mc_applepay.
Receive identifiers in Terminal API responses
Now that you know based on the overview what card and shopper identifiers exist and which ones you need for your use cases, you have to make sure that your Terminal API responses actually return those identifiers. The following identifiers are returned automatically:- Funding source
- Card BIN
- In your Customer Area, go to Developers > Additional data.
-
Select options:
Example
In the Terminal API response, the identifiers are in theAdditionalResponse. Some identifiers are also returned in other fields. We return the AdditionalResponse either as key-value pairs separated by an ampersand &, or as a Base64-encoded string that you need to decode to get a JSON object.
Identifiers in a payment response
AdditionalResponse is returned as a Base64-encoded string, you get a JSON object similar to the following when you Base64-decode the string:
Receive identifiers in webhooks
In particular for gaining insights across channels, you may want to gather identifiers from standard webhooks. For this, you need to enable receiving the identifiers that your use cases require. The identifies are then included in the webhook message in theadditionalData object.
- 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
