Class PlayerPurchaseAppleappstoreRequest
PlayerPurchaseAppleappstoreRequest
Inherited Members
Namespace: Unity.Services.Apis.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "player-purchase-appleappstore-request")]
[Preserve]
public class PlayerPurchaseAppleappstoreRequest
Constructors
PlayerPurchaseAppleappstoreRequest(string, string, int, string)
Initializes a new instance of the Player
Declaration
[Preserve]
public PlayerPurchaseAppleappstoreRequest(string id = null, string receipt = null, int localCost = 0, string localCurrency = null)
Parameters
Type | Name | Description |
---|---|---|
string | id | ID of the purchase. (required). |
string | receipt | Receipt data returned from the Apple App Store as a result of a successful purchase. This should be base64 encoded. (required). |
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. |
Receipt
Receipt data returned from the Apple App Store as a result of a successful purchase. This should be base64 encoded.
Declaration
[DataMember(Name = "receipt", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Receipt { get; set; }
Property Value
Type | Description |
---|---|
string | Receipt data returned from the Apple App Store as a result of a successful purchase. This should be base64 encoded. |