- What payment instrument is the customer using?
- Who is the customer?
- What country/region does the shopper come from?
- What are the card details?
Requirements
Before you begin, take into account the following requirements, limitations, and preparations.How it works
The basic card acquisition flow is as follows.- You make a card acquisition request.
- On the terminal, the customer taps, inserts, or swipes their card or other payment instrument.
-
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. -
You finish the card acquisition in one of the following ways:
- Finish with a payment. This tells the terminal it needs to use the acquired data for the payment.
- Finish with a cancellation. This tells the terminal it no longer needs to keep the acquired data.
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.
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
-
Make a Terminal API card acquisition request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to CardAcquisition.
JSON
Java
-
The standard
-
When the card acquisition succeeds, you receive a CardAcquisitionResponse with a
messageof CARD_ACQ_COMPLETED in theAdditionalResponse. Card acquisition response -
From the
CardAcquisitionResponse, get the details that you need for your use case.If theAdditionalResponsedoesn’t include the expected details, you may need to enable receiving those details. Refer to Receive identifiers. As an example, theAdditionalResponsefrom theCardAcquisitionResponseabove 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.-
Make a payment request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Payment.
TimeStampof 2021-03-05T12:22:59.000Z and aTransactionIDof 8ha5001614946979000.JSON
Java
-
The standard
-
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.
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 anEnableServiceRequest to abort the transaction. The terminal then discards the acquired card data.
-
Make a Terminal API enable service request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to EnableService.
DisplayOutputobject, 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 yourEnableServiceRequestwith aDisplayOutputobject containing:The following example will show Welcome!, an animated green check mark
, and We logged your arrival time.
Cancellation using a custom message
-
The standard
-
When the cancellation succeeds, you receive an EnableServiceResponse that contains:
Response.Result: Success
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.-
Make a Terminal API abort request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Abort.
ServiceIDof 21796. Abort an in-progress card acquisition requestA successfulAbortRequestreturns a response with a 200 OK HTTP status code and no body. -
The standard
-
Check whether the cancellation succeeded:
-
The Present card prompt generated by your
CardAcquisitionRequestdisappears from the terminal display. -
You receive a
CardAcquisitionResponsecontaining:Result: FailureErrorCondition: Aborted
-
The Present card prompt generated by your
See also
Card acquisition scenarios:- Card-based customer identification
- Card check before refund
- Tax-free shopping
- Shopper loyalty
- Wallet passes