Class PurchaseConfig
The configuration of a purchase request for a product registered to the game.
Inherited Members
Namespace: Meta.InstantGames.v8
Assembly: Unity.Meta.InstantGames.Sdk.v8.dll
Syntax
public class PurchaseConfig : JsObject
Constructors
PurchaseConfig(string, string)
Creates a new instance of PurchaseConfig
Declaration
public PurchaseConfig(string productID, string developerPayload = null)
Parameters
Type | Name | Description |
---|---|---|
string | productID | The identifier of the product to purchase |
string | developerPayload | An optional developer-specified payload, to be included in the returned purchase's signed request. |
Properties
DeveloperPayload
An optional developer-specified payload, to be included in the returned purchase's signed request.
Declaration
public string DeveloperPayload { get; }
Property Value
Type | Description |
---|---|
string |
ProductID
The identifier of the product to purchase
Declaration
public string ProductID { get; }
Property Value
Type | Description |
---|---|
string |