- Make a cashback request to take funds off the gift card and give this back to the shopper as cash. If you cash out the full remaining balance, the card is no longer active and cannot be used again.
- Make a deactivation request to disable the card without cashing it out.
Requirements
Before you begin, take into account the following requirements, limitations, and preparations.Cash back a gift card
Your options with a cashback request depend on the gift card provider, the scheme rules, and the applicable law. If cashbacks are allowed, you can normally only cash out the full amount remaining on the card. But if the gift card was provided by Givex, it is possible in some cases to give a cashback for a partial amount. The funds taken off the gift card can be given back to the shopper in cash, or transferred to their credit or debit card by making an unreferenced refund. To make a gift card cashback request:-
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.
- Check the balance remaining on the gift card.
-
Make a payment request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Payment.
InSaleData.SaleToAcquirerData, specify the tender option in one of the following formats:-
Option 1: a JSON object converted to a Base64 encoded string.
Encode{"redemptionType": "cashback"}to Base64, and pass the resulting string:
"SaleToAcquirerData": "eyJyZWRlbXB0aW9uVHlwZSI6ICJjYXNoYmFjayJ9" -
Option 2: a key-value pair:
"SaleToAcquirerData": "redemptionType=cashback"
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 cashback request is sent to the Adyen payments platform for processing. Once processed, your integration receives the cashback result. -
The standard
-
In the PaymentResponse, check the following:
POIData.POITransactionID.TransactionID: The transaction identifier for the cashback.PaymentReceipt: An object containing data you can use to generate a receipt.Response.Result: Success
Deactivate a gift card
If the gift card was issued by Givex, you can make a deactivation request to disable the card. To make a deactivation request:-
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 Terminal API stored value request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to StoredValue.
JSON
Java
-
The standard
-
In the StoredValueResponse, check the following:
POIData.POITransactionID.TransactionID: The transaction identifier for the deactivation.StoredValueResult.StoredValueTransactionType: Unload andResponse.Result: Success indicate that funds were loaded.StoredValueAccountStatus.CurrentBalance: The current balance on the gift card, which is 0 because the card was deactivated.
