Skip to main content
With a Terminal API card acquisition request, you can obtain card and shopper identifiers before making a payment, or outside of a payment flow. This enables you to answer questions like:
  • What payment instrument is the customer using?
  • Who is the customer?
  • What country/region does the shopper come from?
  • What are the card details?
Based on the answer, you decide what to do next. For example, make a Terminal API payment request with specific parameters, or use the acquired details in another system.

Requirements

Before you begin, take into account the following requirements, limitations, and preparations.

How it works

The basic card acquisition flow is as follows.
  1. You make a card acquisition request.
  2. On the terminal, the customer taps, inserts, or swipes their card or other payment instrument.
  3. You process the acquired card data from the response in your own systems, depending on what you want to achieve.
    The terminal shows One moment, or Keep card inserted if the customer inserted their card into the card reader.
  4. You finish the card acquisition in one of the following ways:

Customer experience

For the customer, card acquisition followed by a payment is a single flow that is the same as a regular payment. But with contactless payments, if the customer tapped their card for the card acquisition, they need to tap their card again for the payment in these cases:
  • The card acquisition did not include an amount.
  • The card acquisition and payment amounts are different.
To avoid the second tap, you can ask our Support Team to enable single tap.

Scenarios

Card acquisition is a step in many advanced payment flows and other use cases. For example:
  • Autonomous stores: the shopper presents their card to gain access to the autonomous store. You use card acquisition to pre-authorize a default amount without showing that amount to the shopper, and then provide access. When the shopper leaves, you adjust the pre-authorization for the products that the shopper took, and capture the payment.
  • Card recognition use cases:
    • Card-based customer identification: For example, in a parking garage. Upon arrival, you identify the driver and record their time of arrival based on a card acquisition. Then you cancel the card acquisition. Upon departure, you identify the driver again through card acquisition, calculate the amount due, and make a payment for the calculated amount.
    • Card check before refund: Before issuing an unreferenced refund, you use card acquisition to verify if the shopper is using the same card for the refund as for the initial payment.
    • Gift card usage: You use card acquisition to check if the shopper is using a gift card. If you do not want to accept the gift card for this transaction, you cancel the card acquisition and ask for a different card. Or if you want to stimulate usage of your gift card, you give extra discounts in the payment following the card acquisition.
    • Tax-free shopping: You use the issuer country/region and the card BIN returned in the card acquisition response to determine whether the transaction qualifies for a tax refund. Then you make a payment request.
  • Loyalty: Based on the card acquisition, you look up the shopper in your loyalty program. You can then interact with the shopper on the terminal, through input requests. For example, if the shopper isn’t recognized, you ask them to enroll in your loyalty program. Or if the shopper is recognized, you ask whether they want to redeem loyalty points. To finish, you make a payment request for the final transaction amount.
    • In loyalty flows based on wallet passes, the card acquisition response tells you if the shopper has your NFC-enabled wallet pass in their mobile NFC wallet app. If they do not, you can issue a pass and add this data to your payment request so the shopper gets notified. Or if they do, you can use the pass for the payment.

Make a card acquisition request

  1. Make a Terminal API card acquisition request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to CardAcquisition.

    JSON

    Java

  2. When the card acquisition succeeds, you receive a CardAcquisitionResponse with a message of CARD_ACQ_COMPLETED in the AdditionalResponse. Card acquisition response
  3. From the CardAcquisitionResponse, get the details that you need for your use case. If the AdditionalResponse doesn’t include the expected details, you may need to enable receiving those details. Refer to Receive identifiers. As an example, the AdditionalResponse from the CardAcquisitionResponse above contains:

Finish with a payment

Depending on your use case, you may want to complete the card acquisition flow with a payment. To do so, the payment request must include a reference to the card acquisition.
  1. Make a payment request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to Payment.
    Here is how you make a payment referring to a card acquisition that had a TimeStamp of 2021-03-05T12:22:59.000Z and a TransactionID of 8ha5001614946979000.

    JSON

    Java

  2. In the PaymentResponse note the following:
    • PaymentInstrumentData.CardData: The same card details that you received in the card acquisition response.
    • Response.AdditionalResponse: Transaction data, including the same details that you received in the card acquisition response. You receive either a string of form-encoded key-value pairs or a Base64 string that you need to decode to get a JSON object.
    Payment response

Finish with a cancellation

Depending on your use case, you may want to stop the card acquisition flow after you have received the response. For this, you make an EnableServiceRequest to abort the transaction. The terminal then discards the acquired card data.
  1. Make a Terminal API enable service request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to EnableService.
    The next example is the basic request, without DisplayOutput object, to end the card acquisition flow with a cancellation. The terminal will show Canceled, a red cross , and Transaction canceled. Basic request to cancel the card acquisition data

    Show your own message

    To show your own message when ending the card acquisition with a cancellation, extend your EnableServiceRequest with a DisplayOutput object containing: The following example will show Welcome!, an animated green check mark -white_check_mark-, and We logged your arrival time. Cancellation using a custom message
  2. When the cancellation succeeds, you receive an EnableServiceResponse that contains:
    • Response.Result: Success
    Response for canceling the card acquisition data
If you try to make a payment with a CardAcquisitionReference referring to the completed card acquisition that you cancelled, the payment will fail with a message Validation failed: No prior card acquisition data available.

Stop an in-progress card acquisition

If necessary, you can cancel a card acquisition before you receive a response, while the terminal is prompting the shopper to present their card. To do this, send an abort request from your POS system.
  1. Make a Terminal API abort request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to Abort.
    The example shows a request to cancel an in-progress card acquisition with a ServiceID of 21796. Abort an in-progress card acquisition request
    A successful AbortRequest returns a response with a 200 OK HTTP status code and no body.
  2. Check whether the cancellation succeeded:
    • The Present card prompt generated by your CardAcquisitionRequest disappears from the terminal display.
    • You receive a CardAcquisitionResponse containing:
      • Result: Failure
      • ErrorCondition: Aborted
    The following example shows the response for a card acquisition that was cancelled before it was completed. CardAcquisitionResponse after canceling before completion

See also

Card acquisition scenarios: Other resources: