PaymentType Refund and compare the card alias against the card alias used for purchases. Then you either:
- Pay the refund to the card the shopper presented for the card acquisition: you make a payment request with
PaymentTypeRefund and a reference to the card acquisition. - Cancel the card acquisition. You can then ask the shopper for a different card and start again.
Requirements
Before you begin, take into account the following requirements and preparations.Card alias
To verify that you will be issuing the refund to the same card that was used for the payment, you need to save the following identifier from your card acquisition and payment responses:- Card alias (
alias): A value that uniquely represents the shopper’s card number (PAN), for exampleA37317672402294. 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.
- Other transaction details. For example, the transaction amount.
Make a Refund card acquisition request
-
Make a card acquisition request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to CardAcquisition.
The terminal shows the refund amount with a minus sign (for example, -24.98) and asks the shopper to present their card. -
The standard
-
When you receive the CardAcquisitionResponse, save the following details:
POIData.POITransactionID.TimeStampandPOIData.POITransactionID.TransactionID: you need these details later in your payment request for an unreferenced refund.
AdditionalResponse(depending on the format you used in the request, 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):alias: The card alias, to recognize the customer based on their card.
- Search the payments stored in your back-end system for a match with the card alias returned in the card acquisition response and the refund amount.
Continue with a refund
If you decide to issue an unreferenced refund to the card that the shopper presented when you made the card acquisition request:-
Make a payment request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Payment.
-
The standard
-
Check whether we received your refund request. If we received it:
- The terminal shows the transaction is approved.
-
You receive a JSON response with:
Result: SuccessPOIData.POITransactionID.TransactionID: The transaction identifier for this refund request.
-
To learn the result, wait for the REFUND_WITH_DATA webhook.
Refunds are always processed asynchronously. If successful, the refund is issued to the shopper’s account.
