Class

PKPaymentSummaryItem

Defines a summary item in a payment request—for example, total, tax, discount, or grand total.

Declaration

class PKPaymentSummaryItem : NSObject

Overview

For shipping cost, use the PKShippingMethod subclass.

Topics

Creating Summary Items

init(label: String, amount: NSDecimalNumber)

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

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

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

Describing Summary Items

var label: String

A short, localized description of the item.

var amount: NSDecimalNumber

The summary item’s amount.

var type: PKPaymentSummaryItemType

The summary item’s type indicating whether or not the amount is final.

enum PKPaymentSummaryItemType

Constants that describe the type of the payment summary item, such as final or pending.

Relationships

Inherits From

Conforms To

See Also

Setting the Payment Summary Items

var paymentSummaryItems: [PKPaymentSummaryItem]

An array of payment summary item objects that summarize the amount of the payment.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software