setMaximumTipPercent

Since

Version 1.7. Requires Westpay Payment Application 2.0.11, or later.

Parameters

value

The maximum tip amount allowed in percent of the main amount.

If a specific maximum amount has been specified (.setMaximumTipAmount) then the maximum percent is ignored.

If neither the maximum tip amount, nor the maximum tip percent, is set, then tipping is decided by how the payment application is configured.

If both maximum tip amount, and the maximum tip percent, is set to 0, then tipping is disabled, regardless of how the payment application is configured.

The maximum tip amount takes precedence over the maximum tip percent, so if both values are set, then the percent is ignored.