---
title: PKPaymentTokenContext
framework: passkit
role: symbol
role_heading: Class
path: passkit/pkpaymenttokencontext
---

# PKPaymentTokenContext

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

## Declaration

```swift
class PKPaymentTokenContext
```

## Overview

Overview important: You must set the multiTokenContexts property on the PKPaymentRequest object to use this class to request multimerchant payments. Use 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 object for each merchant. You can optionally associate each payment token with the merchant’s top-level domain.

## Topics

### Creating a payment token context

- [init(merchantIdentifier:externalIdentifier:merchantName:merchantDomain:amount:)](passkit/pkpaymenttokencontext/init(merchantidentifier:externalidentifier:merchantname:merchantdomain:amount:).md)

### Specifying the merchant

- [merchantIdentifier](passkit/pkpaymenttokencontext/merchantidentifier.md)
- [merchantDomain](passkit/pkpaymenttokencontext/merchantdomain.md)
- [merchantName](passkit/pkpaymenttokencontext/merchantname.md)
- [externalIdentifier](passkit/pkpaymenttokencontext/externalidentifier.md)

### Indicating a payment amount

- [amount](passkit/pkpaymenttokencontext/amount.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Payment requests

- [PKPaymentRequest](passkit/pkpaymentrequest.md)
- [PKRecurringPaymentRequest](passkit/pkrecurringpaymentrequest.md)
- [PKAutomaticReloadPaymentRequest](passkit/pkautomaticreloadpaymentrequest.md)
- [PKDeferredPaymentRequest](passkit/pkdeferredpaymentrequest.md)
