<!--
{
  "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/init(merchantIdentifier:externalIdentifier:merchantName:merchantDomain:amount:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKPaymentTokenContext(im)initWithMerchantIdentifier:externalIdentifier:merchantName:merchantDomain:amount:"
  },
  "title" : "init(merchantIdentifier:externalIdentifier:merchantName:merchantDomain:amount:)"
}
-->

# init(merchantIdentifier:externalIdentifier:merchantName:merchantDomain:amount:)

Create a payment token context for a single merchant.

```
init(merchantIdentifier: String, externalIdentifier: String, merchantName: String, merchantDomain: String?, amount: NSDecimalNumber)
```

## Parameters

`merchantIdentifier`

The Apple Pay merchant identifier.

`externalIdentifier`

An external identifier for the merchant.

`merchantName`

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

`merchantDomain`

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

`amount`

The amount to authorize for the payment token.

---

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)