<!--
{
  "availability" : [
    "iOS: 27.2.0 -",
    "iPadOS: 27.2.0 -",
    "macOS: 27.2.0 -",
    "tvOS: 27.2.0 -",
    "visionOS: 27.2.0 -",
    "watchOS: 27.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/ExternalPurchaseCustomLink/TokenType",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit26ExternalPurchaseCustomLinkO9TokenTypeV"
  },
  "title" : "ExternalPurchaseCustomLink.TokenType"
}
-->

# ExternalPurchaseCustomLink.TokenType

Values that represent the external purchase token types.

```
struct TokenType
```

## Discussion

Provide a token type value when you call [`token(for:)`](/documentation/StoreKit/ExternalPurchaseCustomLink/token(for:)-6pixj).

## Topics

### Token types

[`static let withinApp: ExternalPurchaseCustomLink.TokenType`](/documentation/StoreKit/ExternalPurchaseCustomLink/TokenType/withinApp)

A token type for workflows that use an alternative payment provider inside the app.

[`static let outOfApp: ExternalPurchaseCustomLink.TokenType`](/documentation/StoreKit/ExternalPurchaseCustomLink/TokenType/outOfApp)

A token type for workflows in which customers complete transactions outside of the app.

## Relationships

### Conforms To

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

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

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

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

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

---

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)