Class Purchase
Represents an individual purchase of a game product.
Inherited Members
Namespace: Meta.InstantGames.v8
Assembly: Unity.Meta.InstantGames.Sdk.v8.dll
Syntax
public class Purchase : JsObject
Constructors
Purchase()
Construct an instance of Purchase
Declaration
public Purchase()
Properties
DeveloperPayload
A developer-specified string, provided during the purchase of the product
Declaration
public string DeveloperPayload { get; }
Property Value
Type | Description |
---|---|
string |
IsConsumed
Whether or not the purchase has been consumed
Declaration
public bool IsConsumed { get; }
Property Value
Type | Description |
---|---|
bool |
PaymentActionType
The current status of the purchase, such as 'charge' or 'refund'
Declaration
public string PaymentActionType { get; }
Property Value
Type | Description |
---|---|
string |
PaymentID
The identifier for the purchase transaction
Declaration
public string PaymentID { get; }
Property Value
Type | Description |
---|---|
string |
ProductID
The product's game-specified identifier
Declaration
public string ProductID { get; }
Property Value
Type | Description |
---|---|
string |
PurchasePlatform
The platform associated with the purchase, such as "FB" for Facebook and "GOOGLE" for Google.
Declaration
public PurchasePlatform PurchasePlatform { get; }
Property Value
Type | Description |
---|---|
PurchasePlatform |
PurchasePrice
Contains the local amount and currency associated with the purchased item
Declaration
public string PurchasePrice { get; }
Property Value
Type | Description |
---|---|
string |
PurchaseTime
Unix timestamp of when the purchase occurred
Declaration
public string PurchaseTime { get; }
Property Value
Type | Description |
---|---|
string |
PurchaseToken
A token representing the purchase that may be used to consume the purchase
Declaration
public string PurchaseToken { get; }
Property Value
Type | Description |
---|---|
string |
SignedRequest
Server-signed encoding of the purchase request
Declaration
public string SignedRequest { get; }
Property Value
Type | Description |
---|---|
string |