Skip to main content
When a customer adds a tip (gratuity) to their payment, it is booked to your liable account by default. However, you can book the entire tip amount directly to your user’s balance account by providing an additional split item in the payment request. You can book the tip to your user’s balance account when you use one of the following tipping methods:

Requirements

In addition to the general requirements for in-person payments with an Adyen for Platforms integration, take into account the following information.

Tip from POS app and book to your user

To make payment request that adds a tip and split instructions for how to book the tip when you use tipping from the POS app:
  1. When you gather the split instructions for the payment, add a split item for the tip:
    • Increase the split.nrOfItems by one, to accommodate the tip split item you are adding.
    • In the split item for the tip, specify:
    Do not include the tip amount in the split.totalAmount field and do not add a split.item[ITEM_NUMBER].amount field for the tip.
  2. Format the split instructions in one of the following ways:
    • Option 1: as a string of form-encoded key-value pairs (using & as a separator).
    • Option 2: as a JSON object converted to a Base64-encoded string.
    As an example, we use a payment of USD 630.00 that is split into:
    • USD 600.00 to be paid to your user’s first balance account as the sale amount.
    • USD 20.00 to be paid to your liable account as your platform’s commission.
    • The payment fee to be booked to your user’s first balance account. This will be deducted from the sale amount.
    • USD 10.00 to be paid to your user’s second balance account as the tip.
    In this case, the split.nrOfItems is 4 and the split.totalAmount is 62000, because the payment fee is not known yet, and the tip amount should not be added even if you do know it in advance.
  1. Turn the split instructions you gathered into key-value pairs. Split tip instructions as key-value pairs
  2. Concatenate the key-value pairs into a string by separating them with ampersands (&). Concatenated key-value pairs