docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IAppleStoreExtendedService

    A public interface for the Apple Store store service extension.

    Namespace: UnityEngine.Purchasing
    Assembly: Unity.Purchasing.dll
    Syntax
    public interface IAppleStoreExtendedService : IStoreServiceExtension

    Properties

    canMakePayments

    Determine if the user can make payments.

    Declaration
    bool canMakePayments { get; }
    Property Value
    Type Description
    bool

    Methods

    ClearTransactionLog()

    Clear all persistent data from the transaction log. Available in debug only.

    Declaration
    void ClearTransactionLog()

    FetchStorefront(Action<AppleStorefront>, Action<string>)

    Fetches the current App Store storefront information. The storefront contains the ID and country code for the user's App Store region. This is useful for determining the user's payment provider region. Only available with StoreKit 2.

    Declaration
    void FetchStorefront(Action<AppleStorefront> successCallback, Action<string> errorCallback)
    Parameters
    Type Name Description
    Action<AppleStorefront> successCallback

    Called with the storefront information when successful.

    Action<string> errorCallback

    Called with an error message if the operation fails.

    SetAppAccountToken(Guid)

    Sets an obfuscation string for tracking user purchases. For more information, see appAccountToken documentation.

    Declaration
    void SetAppAccountToken(Guid appAccountToken)
    Parameters
    Type Name Description
    Guid appAccountToken

    The obfuscated account token

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)