Requirements
Before you begin, take into account the following requirements and preparations.Identifiers to save
To be able to personalize the shopper experience, save the following identifiers in the shopper profiles that you create in your back-end system:-
Card alias (
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. You cannot use the card alias for making payments. You receive the card alias in theAdditionalResponse. -
Shopper reference (
shopperReference): Your reference to identify the shopper. You submit it with a payment, and receive it back in theAdditionalResponsefor that payment and also in any later card acquisition and payment responses. To get the shopper reference, you need to enable receiving this identifier. -
Shopper email (
shopperEmail): You collect the shopper’s email address in some way, and submit it with a payment. You receive it back in theAdditionalResponsefor that payment and also in any later card acquisition and payment responses.
Shopper consent and PIN entry
To save a shopper profile in your back-end system and to submit the shopper reference and email with your payment requests to our platform, you need to ask the shopper for their consent. We can only return the shopper reference and email if your initial request also contains the recurringProcessingModel flag. This flag triggers the terminal to ask the shopper to authenticate by entering their PIN. Because there are still cards being used that do not have a PIN, our Support Team can disable asking for a PIN when the recurringProcessingModel flag is set. However, it goes against best practices to set this flag for every transaction.Synchronous flow
The synchronous flow allows you to actively engage the shopper on the spot. For example, if you recognize the shopper from a card acquisition, you can apply a discount or offer to redeem loyalty points before making the payment.- Make a card acquisition request to check whether the shopper is recognized.
- If the card acquisition response indicates the shopper is not known yet, create a new customer profile and make a payment. To ask the shopper’s consent and gather the data for the customer profile, you can make input requests.
- If the card acquisition response indicates the shopper is already known, optionally make input requests to communicate with the shopper, and then make a payment for a recognized shopper.
Check whether the shopper is recognized
When the shopper makes a purchase, first check if you already know the shopper. If you are in Estonia, choose the Estonian ID card check tab below to learn how to identify the shopper with their national ID card.- Payment card check
- Estonian ID card check
-
Make a card acquisition request with:
JSON
Java
-
When you receive the CardAcquisitionResponse, keep the
TimeStampandTransactionIDfrom thePOIData.POITransactionID. You need these details later in your payment request. Card acquisition response -
To verify whether you already know the shopper, check the
AdditionalResponse. You may need to Base64-decode the string first.-
If the
AdditionalResponsecontains ashopperReferenceand/or ashopperEmail, you already created a customer profile for the shopper. This means the shopper is known. -
Or check the
aliasin theAdditionalResponseagainst the card aliases stored in your system.
If you specified aTokenRequestedTypeof Customer in the request, the card alias is also returned inPaymentToken.TokenValue.
If the shopper used an NFC wallet, there is no card alias. In that case, use thePaymentAccountReferenceinstead.
-
If the
-
Take the next step:
- If the shopper is not known yet, create a new customer profile and make a payment.
- If the shopper is already known, make a payment for a recognized shopper.
