Skip to main content
Postman collection Implementation examples
.NET
You can use the card alias to recognize the shopper’s card. But for shopper loyalty use cases you can also go one step further and create your own identifiers to be returned in card acquisition and payment responses. That enables you to identify an individual instead of just their payment card, and make the shopping experience more personal. To use this method, you need to create customer profiles in your back-end system.

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 the AdditionalResponse.
  • Shopper reference (shopperReference): Your reference to identify the shopper. You submit it with a payment, and receive it back in the AdditionalResponse for 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 the AdditionalResponse for 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.
  1. Make a card acquisition request to check whether the shopper is recognized.
  2. 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.
  3. 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.
  1. Make a card acquisition request with:

    JSON

    Java

  2. When you receive the CardAcquisitionResponse, keep the TimeStamp and TransactionID from the POIData.POITransactionID. You need these details later in your payment request. Card acquisition response
  3. To verify whether you already know the shopper, check the AdditionalResponse. You may need to Base64-decode the string first.
    • If the AdditionalResponse contains a shopperReference and/or a shopperEmail, you already created a customer profile for the shopper. This means the shopper is known.
    • Or check the alias in the AdditionalResponse against the card aliases stored in your system.
      If you specified a TokenRequestedType of Customer in the request, the card alias is also returned in PaymentToken.TokenValue.
      If the shopper used an NFC wallet, there is no card alias. In that case, use the PaymentAccountReference instead.
  4. Take the next step: