setMaximumTipAmount

Since

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

Parameters

value

The maximum tip amount allowed. If this value is set, it overrides the maximum percent. The value must be the tip amount only, it should not include the main amount of the transaction.

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.