docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AppleReceipt

    An Apple receipt as defined here: https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html#//apple_ref/doc/uid/TP40010573-CH106-SW1

    Inheritance
    object
    AppleReceipt
    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 AppleReceipt

    Fields

    inAppPurchaseReceipts

    The receipts of the In-App purchases.

    Declaration
    public AppleInAppPurchaseReceipt[] inAppPurchaseReceipts
    Field Value
    Type Description
    AppleInAppPurchaseReceipt[]

    Properties

    appVersion

    The app version number

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

    bundleID

    The app bundle ID

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

    expirationDate

    The expiration date of the receipt

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

    hash

    A SHA-1 hash, used to validate the receipt.

    Declaration
    public byte[] hash { get; }
    Property Value
    Type Description
    byte[]

    opaque

    An opaque value used, with other data, to compute the SHA-1 hash during validation.

    Declaration
    public byte[] opaque { get; }
    Property Value
    Type Description
    byte[]

    originalApplicationVersion

    The version of the app that was originally purchased.

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

    receiptCreationDate

    The date the receipt was created

    Declaration
    public DateTime receiptCreationDate { get; }
    Property Value
    Type Description
    DateTime
    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)