<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKPaymentTokenContext",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKPaymentTokenContext"
  },
  "title" : "PKPaymentTokenContext"
}
-->

# PKPaymentTokenContext

A class that defines the context for a single payment token in a payment request for multimerchant payments.

```
class PKPaymentTokenContext
```

## Overview> Important:
> You must set the ``doc://com.apple.passkit/documentation/PassKit/PKPaymentRequest/multiTokenContexts`` property on the ``doc://com.apple.passkit/documentation/PassKit/PKPaymentRequest`` object to use this class to request multimerchant payments.

Use [`PKPaymentTokenContext`](/documentation/PassKit/PKPaymentTokenContext) to authorize a payment amount for each payment token in a multimerchant payment request. To enable multiple merchants for a transaction, use one [`PKPaymentTokenContext`](/documentation/PassKit/PKPaymentTokenContext) object for each merchant.

You can optionally associate each payment token with the merchant’s top-level domain.

## Topics

### Creating a payment token context

[`-  initWithMerchantIdentifier:externalIdentifier:merchantName:merchantDomain:amount:`](/documentation/PassKit/PKPaymentTokenContext/init(merchantIdentifier:externalIdentifier:merchantName:merchantDomain:amount:))

Create a payment token context for a single merchant.

### Specifying the merchant

[`merchantIdentifier`](/documentation/PassKit/PKPaymentTokenContext/merchantIdentifier)

The Apply Pay merchant identifier.

[`merchantDomain`](/documentation/PassKit/PKPaymentTokenContext/merchantDomain)

The merchant’s top-level domain that the Apple Pay server associates with the payment token.

[`merchantName`](/documentation/PassKit/PKPaymentTokenContext/merchantName)

The merchant’s display name that the Apple Pay server associates with the payment token.

[`externalIdentifier`](/documentation/PassKit/PKPaymentTokenContext/externalIdentifier)

An external identifier for the merchant.

### Indicating a payment amount

[`amount`](/documentation/PassKit/PKPaymentTokenContext/amount)

The amount to authorize for the payment token.

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)