Class PlayerPurchaseGoogleplaystoreRequest
PlayerPurchaseGoogleplaystoreRequest
Inherited Members
Namespace: Unity.Services.Apis.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "player-purchase-googleplaystore-request")]
[Preserve]
public class PlayerPurchaseGoogleplaystoreRequest
Constructors
PlayerPurchaseGoogleplaystoreRequest(string, string, string, int, string)
Initializes a new instance of the Player
Declaration
[Preserve]
public PlayerPurchaseGoogleplaystoreRequest(string id = null, string purchaseData = null, string purchaseDataSignature = null, int localCost = 0, string localCurrency = null)
Parameters
Type | Name | Description |
---|---|---|
string | id | ID of the purchase. (required). |
string | purchaseData | A JSON encoded string returned from a successful in-app billing purchase. (required). |
string | purchaseDataSignature | A signature of the |
int | localCost | The cost of the purchase as an integer in the minor currency format, for example, $1.99 USD would be 199. (required). |
string | localCurrency | The ISO-4217 currency code with which the player purchased the IAP. (required). |
Properties
Id
ID of the purchase.
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | ID of the purchase. |
LocalCost
The cost of the purchase as an integer in the minor currency format, for example, $1.99 USD would be 199.
Declaration
[DataMember(Name = "localCost", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int LocalCost { get; set; }
Property Value
Type | Description |
---|---|
int | The cost of the purchase as an integer in the minor currency format, for example, $1.99 USD would be 199. |
LocalCurrency
The ISO-4217 currency code with which the player purchased the IAP.
Declaration
[DataMember(Name = "localCurrency", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string LocalCurrency { get; set; }
Property Value
Type | Description |
---|---|
string | The ISO-4217 currency code with which the player purchased the IAP. |
PurchaseData
A JSON encoded string returned from a successful in-app billing purchase.
Declaration
[DataMember(Name = "purchaseData", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string PurchaseData { get; set; }
Property Value
Type | Description |
---|---|
string | A JSON encoded string returned from a successful in-app billing purchase. |
PurchaseDataSignature
A signature of the purchaseData
returned from a successful in-app billing purchase.
Declaration
[DataMember(Name = "purchaseDataSignature", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string PurchaseDataSignature { get; set; }
Property Value
Type | Description |
---|---|
string | A signature of the |