docs.unity3d.com
    Show / Hide Table of Contents

    Class AppleInAppPurchaseReceipt

    The details of an individual purchase.

    Inheritance
    Object
    AppleInAppPurchaseReceipt
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Purchasing.Security
    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
    Int32

    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
    Int32

    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
    Implements
    IPurchaseReceipt.productID

    productType

    The type of product.

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

    purchaseDate

    The date of purchase.

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

    quantity

    The number of items purchased.

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

    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.transactionID
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023