docs.unity.cn
    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
    Namespace: UnityEngine.Purchasing.Security
    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
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 20 April 2021