disambiguation(with:)

disambiguation(with:)

disambiguation(with:) Type Method of INPaymentAmountResolutionResult Creates an object whose resolution requires the user to select from among the specified objects.

class func disambiguation(with paymentAmountsToDisambiguate: [INPaymentAmount]) -> Self

Parameters

paymentAmountsToDisambiguate

An array of INPaymentAmount objects from which to select. Specify as few objects as possible, and preferably no more than five.

Return Value

A new INPaymentAmountResolutionResult object.

Discussion

Use this method when you cannot resolve the user request uniquely and want the user to select from a limited set of possible options. For example, you might use this method if the user’s initial request did not specify a payment amount and you want to specify options to pay the minimum amount due or the total amount.

Note: In watchOS, it is preferable to choose an appropriate amount and ask for confirmation rather than to ask the user to disambiguate from among several values.