Type Method

summaryItemWithLabel:amount:type:

Initializes and returns a summary item with the given label, amount, and type.

Declaration

+ (instancetype)summaryItemWithLabel:(NSString *)label amount:(NSDecimalNumber *)amount type:(PKPaymentSummaryItemType)type;

Parameters

label

The value for the PKPaymentSummaryItem property.

amount

The value for the PKPaymentSummaryItem property.

type

The value for the type property.

Return Value

A summary item with the given label, amount, and type.

Discussion

When creating summary items for estimates or charges whose final value is not yet known, use a PKPaymentSummaryItemTypePending type. Use zero for the amount of pending items. The payment sheet does not show the value of pending items.

See Also

Creating Summary Items

+ summaryItemWithLabel:amount:

Initializes and returns a summary item with the given label and amount.