Adjustment gratuity
The gratuity (tip) selected for the current cart.
The gratuity (tip) selected for the current cart.
Available on cart.gratuity when the customer has opted in to tipping.
Properties
amount
The gratuity amount in the subunit of the current currency.
Returns: Integer — e.g. 500 for £5.00.
percentage
The gratuity as a percentage of the cart subtotal.
Returns: String — e.g. 20%. Excludes insurance and fees from the
subtotal used to calculate the percentage.