-
Referenced refund: a
ReversalRequestwith a reference to the original payment’s transaction identifier. Use this if you want to refund a payment made with this gift card. The transaction identifier references the gift card details, so you do not need to specify them in the refund request. You can also make (multiple) partial refunds in this way. For the detailed steps, refer to Referenced refund. -
Unreferenced refund: a
PaymentRequestwithPaymentTypeRefund. Use this if you cannot connect the refund to a payment made with the gift card but still want to return the funds to this gift card. For example, in a ‘merchandise return’ where the shopper returns an unwanted birthday gift. Because an unreferenced refund to a gift card requires specifying the gift card details, we explain this transaction on this page.
Requirements
Before you begin, take into account the following requirements, limitations, and preparations.Make an unreferenced refund
To issue a refund to a gift card:-
Determine the card entry method:
- If you want to scan the card, do that first and use the obtained card details in your request.
- If you want to swipe the card or use manual keyed entry (MKE), send the request first. The payment terminal will show a prompt to swipe the card or enter the card details.
-
Make a payment request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Payment.
InSaleData.SaleToAcquirerData, specify the parameter in one of the following formats:-
Option 1: a JSON object converted to a Base64 encoded string.
Encode{"maxLength": "27", "cardMask": "****-****-****-****-****-****-***"}to Base64, and pass the resulting string:
"SaleToAcquirerData": "eyJtYXhMZW5ndGgiOiAiMjciLCAiY2FyZE1hc2siOiAiKioqKi0qKioqLSoqKiotKioqKi0qKioqLSoqKiotKioqIn0=" -
Option 2: a key-value pair:
"SaleToAcquirerData": "maxLength=27&cardMask=****-****-****-****-****-****-***"
AdditionalResponsethat you receive. If there are more tender options (for example, ReceiptHandler ) or other data elements that you need to pass in theSaleToAcquirerDatafield, refer to Add information to a payment. -
Option 1: a JSON object converted to a Base64 encoded string.
-
The PaymentTransaction object with:
JSON
Java
-
The standard
-
In the PaymentResponse, check the following:
POIData.POITransactionID.TransactionID: The transaction identifier for the refund.PaymentReceipt: An object containing data you can use to generate a receipt.Response.Result: Success
