docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AppleInAppPurchaseReceipt

    The details of an individual purchase.

    Inheritance
    object
    AppleInAppPurchaseReceipt
    Implements
    IPurchaseReceipt
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Purchasing.Security
    Assembly: Unity.Purchasing.SecurityCore.dll
    Syntax
    public class AppleInAppPurchaseReceipt : IPurchaseReceipt

    Properties

    cancellationDate

    For a transaction that was canceled by Apple customer support, the time and date of the cancellation. For an auto-renewable subscription plan that was upgraded, the time and date of the upgrade transaction.

    Declaration
    public DateTime cancellationDate { get; }
    Property Value
    Type Description
    DateTime

    isFreeTrial

    For a subscription, whether or not it is in the free trial period.

    Declaration
    public int isFreeTrial { get; }
    Property Value
    Type Description
    int

    isIntroductoryPricePeriod

    For an auto-renewable subscription, whether or not it is in the introductory price period.

    Declaration
    public int isIntroductoryPricePeriod { get; }
    Property Value
    Type Description
    int

    originalPurchaseDate

    For a transaction that restores a previous transaction, the date of the original transaction.

    Declaration
    public DateTime originalPurchaseDate { get; }
    Property Value
    Type Description
    DateTime

    originalTransactionIdentifier

    For a transaction that restores a previous transaction, the transaction ID of the original transaction. Otherwise, identical to the transactionID.

    Declaration
    public string originalTransactionIdentifier { get; }
    Property Value
    Type Description
    string

    productID

    The product ID

    Declaration
    public string productID { get; }
    Property Value
    Type Description
    string

    productType

    The type of product.

    Declaration
    public int productType { get; }
    Property Value
    Type Description
    int

    purchaseDate

    The date of purchase.

    Declaration
    public DateTime purchaseDate { get; }
    Property Value
    Type Description
    DateTime

    quantity

    The number of items purchased.

    Declaration
    public int quantity { get; }
    Property Value
    Type Description
    int

    subscriptionExpirationDate

    The expiration date for the subscription, expressed as the number of milliseconds since January 1, 1970, 00:00:00 GMT.

    Declaration
    public DateTime subscriptionExpirationDate { get; }
    Property Value
    Type Description
    DateTime

    transactionID

    The ID of the transaction.

    Declaration
    public string transactionID { get; }
    Property Value
    Type Description
    string

    Implements

    IPurchaseReceipt
    In This Article
    Back to top
    Copyright © 2025 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)