Class GooglePlayReceipt
A GooglePlay purchase receipt
Inherited Members
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 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. |
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.
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.
Declaration
public string transactionID { get; }
Property Value
Type | Description |
---|---|
String |
transactionID
The ID of the transaction.
Declaration
public string transactionID { get; }
Property Value
Type | Description |
---|---|
String |