<!--
{
  "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/ExternalPurchaseType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit26ExternalPurchaseCustomLinkO0cD4TypeO"
  },
  "title" : "ExternalPurchaseCustomLink.ExternalPurchaseType"
}
-->

# ExternalPurchaseCustomLink.ExternalPurchaseType

Values that represent the types of external purchase an app can perform.

```
enum ExternalPurchaseType
```

## Topics

### External purchase types

[`case outOfApp(destinationURL: URL?)`](/documentation/StoreKit/ExternalPurchaseCustomLink/ExternalPurchaseType/outOfApp(destinationURL:))

The external purchase happens outside of the app.

[`case withinApp`](/documentation/StoreKit/ExternalPurchaseCustomLink/ExternalPurchaseType/withinApp)

The external purchase happens inside the app.

## Relationships

### Conforms To

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

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

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

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

---

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)