docs.unity3d.com
    Show / Hide Table of Contents

    Class GooglePlayReceipt

    A GooglePlay purchase receipt

    Inheritance
    Object
    GooglePlayReceipt
    Namespace: UnityEngine.Purchasing.Security
    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 transactionID, string packageName, string purchaseToken, DateTime purchaseTime, GooglePurchaseState purchaseState)
    Parameters
    Type Name Description
    String productID

    The item's product identifier.

    String transactionID

    The ID of the transaction. Obsolete.

    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.

    GooglePlayReceipt(String, String, String, String, DateTime, GooglePurchaseState)

    Constructor that initializes the members from the input parameters.

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

    The item's product identifier.

    String transactionID

    The ID of the transaction. Obsolete.

    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.

    GooglePlayReceipt(String, String, String, String, String, DateTime, GooglePurchaseState)

    Constructor that initializes the members from the input parameters. Obsolete.

    Declaration
    [Obsolete("Use variant with string orderID in signature")]
    public GooglePlayReceipt(string productID, string transactionID, string orderID, string packageName, string purchaseToken, DateTime purchaseTime, GooglePurchaseState purchaseState)
    Parameters
    Type Name Description
    String productID

    The item's product identifier.

    String transactionID

    The ID of the transaction. Obsolete, copies itself to the orderID as well.

    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.

    GooglePlayReceipt(String, String, String, String, String, DateTime, GooglePurchaseState)

    Constructor that initializes the members from the input parameters. Obsolete.

    Declaration
    [Obsolete("Use variant with string orderID in signature")]
    public GooglePlayReceipt(string productID, string transactionID, string orderID, string packageName, string purchaseToken, DateTime purchaseTime, GooglePurchaseState purchaseState)
    Parameters
    Type Name Description
    String productID

    The item's product identifier.

    String transactionID

    The ID of the transaction. Obsolete, copies itself to the orderID as well.

    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.

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

    orderID

    A unique order identifier for the transaction.

    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

    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

    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

    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

    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

    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. Obsolete use orderID

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

    transactionID

    The ID of the transaction. Obsolete use orderID

    Declaration
    public string transactionID { get; }
    Property Value
    Type Description
    String
    Back to top
    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