---
title: "init(label:amount:type:)"
framework: passkit
role: symbol
role_heading: Initializer
path: "passkit/pkpaymentsummaryitem/init(label:amount:type:)"
---

# init(label:amount:type:)

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

## Declaration

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

## Parameters

- `label`: A short, localized description of the summary item.
- `amount`: The amount associated with the summary item.
- `type`: The type of the summary item.

## Return Value

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

## Discussion

Discussion When creating summary items for estimates or charges whose final value isn’t yet known, use a PKPaymentSummaryItemType.pending type. Use zero for the amount of pending items. The payment sheet doesn’t show the value of pending items. note: The payment request’s total must include a final value, even if the payment request includes one or more pending summary items. This total represents the total of all the known costs; don’t include the value of any pending items.

## See Also

### Creating  summary items

- [init(label:amount:)](passkit/pkpaymentsummaryitem/init(label:amount:).md)
