<!--
{
  "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/PKPaymentOrderDetails/init(orderTypeIdentifier:orderIdentifier:webServiceURL:authenticationToken:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKPaymentOrderDetails(im)initWithOrderTypeIdentifier:orderIdentifier:webServiceURL:authenticationToken:"
  },
  "title" : "init(orderTypeIdentifier:orderIdentifier:webServiceURL:authenticationToken:)"
}
-->

# init(orderTypeIdentifier:orderIdentifier:webServiceURL:authenticationToken:)

Initializes a payment order details object with the identifier, web service URL, and authentication token you provide.

```
init(orderTypeIdentifier: String, orderIdentifier: String, webServiceURL: URL, authenticationToken: String)
```

## Parameters

`orderTypeIdentifier`

An identifier for the order type associated with the order.

`orderIdentifier`

A unique order identifier scoped to your order type identifier.

`webServiceURL`

The URL of your web service.

`authenticationToken`

The authentication token supplied to your web service.

---

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)