<!--
{
  "documentType" : "article",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/using-storekit-in-unity",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "Using StoreKit in Unity"
}
-->

# Using StoreKit in Unity

Provide in-app purchases in Unity-based games using C#.

## Overview

Apple provides a StoreKit plug-in for Unity — an open source C# wrapper that gives Unity developers direct access to StoreKit, Apple’s framework for implementing in-app purchases. If your game is built in Unity, use this plug-in to add Apple In-App Purchases without writing platform-specific Swift or Objective-C code.

The plug-in exposes the same APIs and the same full feature set available to native Apple developers, through idiomatic C# calls that fit naturally into a Unity project. It’s maintained by Apple, ships as source on GitHub, and includes a sample project demonstrating the core purchase flow.

## Understand the StoreKit plugin’s capabilities

- **[Product fetching](https://github.com/apple/unityplugins/blob/27-beta/plug-ins/Apple.StoreKit/Apple.StoreKit_Unity/Assets/Apple.StoreKit/Documentation~/Apple.StoreKit.md#fetching-products)** — retrieve product metadata (price, display name, description) for your app’s in-app purchases and subscriptions.
- **[Purchases](https://github.com/apple/unityplugins/blob/27-beta/plug-ins/Apple.StoreKit/Apple.StoreKit_Unity/Assets/Apple.StoreKit/Documentation~/Apple.StoreKit.md#making-a-purchase)** — initiate a purchase and receive a verification result.
- **Transaction verification** — cryptographically verify transactions via `VerificationResult`.
- **Transaction updates** — listen for real-time transaction changes (renewals, refunds, revocations) via `Transaction.Updates`.
- **Current entitlements** — check what a player currently owns via `GetCurrentEntitlements`.
- **App Transaction** — access app-level purchase information via `AppTransaction`.
- **Offer codes** — present the system integrated offer-code redemption sheet.
- **Subscriptions** — read subscription status, renewal info, and win-back offer eligibility via `SubscriptionInfo`.
- **Promotional offers and purchase intents** — support Apple Search Ads / App Store product page purchase flows via `PurchaseIntent` and `Product.PromotionInfo`.
- **Advanced Commerce** — `AdvancedCommerceProduct` support for custom pricing and purchase options.
- **Storefront and app lifecycle helpers** — `Storefront.GetCurrent`, `AppStore.Sync`, `AppStore.RequestReview`.

## Getting started

For installation, setup, and usage instructions, see the plug-in’s [README](https://github.com/apple/unityplugins/blob/main/README.md) in the GitHub repository — this article doesn’t duplicate that content.

## See Also

  **GitHub repository:**     <github.com/apple/unityplugins>   (source, README, sample project)

  **WWDC session:**     *Unlock in-game content with StoreKit and Background Assets*   (WWDC26, session 10940)

  **StoreKit documentation:**     <doc://com.apple.documentation/documentation/StoreKit>   (native API reference — the plug-in wraps this 1:1)



---

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)