docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GooglePlayReceipt

    A GooglePlay purchase receipt

    Inheritance
    object
    GooglePlayReceipt
    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 GooglePlayReceipt : IPurchaseReceipt

    Constructors

    GooglePlayReceipt(string, string, string, string, DateTime, GooglePurchaseState)

    Constructor that initializes the members from the input parameters.

    Declaration
    public GooglePlayReceipt(string productID, string orderID, string packageName, string purchaseToken, DateTime purchaseTime, GooglePurchaseState purchaseState)
    Parameters
    Type Name Description
    string productID

    The item's product identifier.

    string orderID

    The unique order identifier for the transaction.

    string packageName

    The package name of the app.

    string purchaseToken

    The token that uniquely identifies a purchase for a given item and user pair.

    DateTime purchaseTime

    The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).

    GooglePurchaseState purchaseState

    The purchase state of the order.

    Properties

    orderID

    A unique order identifier for the transaction. This identifier corresponds to the Google payments order ID.

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

    packageName

    The package name of the app.

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

    productID

    The item's product identifier.

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

    purchaseDate

    The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).

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

    purchaseState

    The purchase state of the order.

    Declaration
    public GooglePurchaseState purchaseState { get; }
    Property Value
    Type Description
    GooglePurchaseState

    purchaseToken

    A token that uniquely identifies a purchase for a given item and user pair.

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

    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)