Initializer

init(label:amount:type:)

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

Declaration

convenience init(label: String, amount: NSDecimalNumber, type: PKPaymentSummaryItemType)

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 PKPaymentSummaryItemType.pending 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

init(label: String, amount: NSDecimalNumber)

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