---
title: "init(merchantIdentifier:externalIdentifier:merchantName:merchantDomain:amount:)"
framework: passkit
role: symbol
role_heading: Initializer
path: "passkit/pkpaymenttokencontext/init(merchantidentifier:externalidentifier:merchantname:merchantdomain:amount:)"
---

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

Create a payment token context for a single merchant.

## Declaration

```swift
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.
