Requirements
Before you begin, take into account the following requirements, limitations, and preparations.Set up tipping in your POS app
The tip amount to propose to your customer on the terminal can be a percentage of the transaction amount, a fixed amount, one of various fixed amounts depending on the transaction amount, and so on.You need to implement logic on your end to ensure your POS app provides the tip amount that you need to include in your payment request.
Make a payment
After you configured tipping in your POS system, you are ready to make a payment request that includes aTipAmount. This shows the transaction amount and the proposed tip amount on the terminal display.
-
Make a payment request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Payment.
The payment request is routed to the payment terminal. The customer accepts, changes, or declines the tip and completes the payment. The terminal then collects the payment details and sends the request for the original transaction amount plus the tip amount to the Adyen payments platform. If successful, the terminal shows the payment is approved. -
The standard
-
In the PaymentResponse note the following:
-
POIData.POITransactionID.TransactionID: Transaction identifier for the payment. -
PaymentReceipt: receipt data with the original transaction amount, the tip amount (not included if the customer didn’t add a tip), and the total amount. -
PaymentResult.AmountsResp:-
TipAmount: the amount of the tip. If the customer didn’t add a tip, this field is not included. -
AuthorizedAmount: the total amount of the payment, consisting of the original transaction amount plus the tip amount. -
Currency: the currency of the payment.
-
-
Response.Result: Success -
Response.AdditionalResponse: additional transaction data. 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. This includes:posadditionalamounts.originalAmountValue: the original transaction amount in minor units.posAmountGratuityValue: the tip amount in minor units.authorisedAmountValue: the total authorized amount in minor units.
-
