Initializer

init(label:amount:)

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

Declaration

convenience init(label: String, amount: NSDecimalNumber)

Parameters

label

The value for the PKPaymentSummaryItem property.

amount

The value for the PKPaymentSummaryItem property.

Return Value

A summary item with the given label and amount. The resulting item has a PKPaymentSummaryItemType.final type.

See Also

Creating Summary Items

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

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