Class RedeemGooglePlayStorePurchaseArgs
Arguments for a RedeemGooglePlayStorePurchaseAsync call.
Namespace: Unity.Services.Economy
Syntax
public class RedeemGooglePlayStorePurchaseArgs
public class RedeemGooglePlayStorePurchaseArgs
Constructors
RedeemGooglePlayStorePurchaseArgs(String, String, String, Int32, String)
Takes a realMoneyPurchaseId. This is the configuration ID of the purchase to make. Takes a purchaseData. A JSON encoded string returned from a successful in app billing purchase. Takes a purchaseDataSignature. A signature of the PurchaseData returned from a successful in app billing purchase. Takes a localCost. This is the cost of the purchase as an integer in the minor currency format, e.g. $1.99 USD would be 199 Takes a localCurrency. ISO-4217 code of the currency used in the purchase.
Declaration
public RedeemGooglePlayStorePurchaseArgs(string realMoneyPurchaseId, string purchaseData, string purchaseDataSignature, int localCost, string localCurrency)
public RedeemGooglePlayStorePurchaseArgs(string realMoneyPurchaseId, string purchaseData, string purchaseDataSignature, int localCost, string localCurrency)
Parameters
Type | Name | Description |
---|---|---|
String | realMoneyPurchaseId | Configuration ID of the purchase to be made |
String | purchaseData | |
String | purchaseDataSignature | |
Int32 | localCost | Cost of the purchase as an integer in the minor currency format, e.g. $1.99 USD would be 199 |
String | localCurrency | ISO-4217 code of the currency used in the purchase |
Properties
LocalCost
The cost of the purchase as an integer in the minor currency format, e.g. $1.99 USD would be 199
Declaration
public int LocalCost { get; set; }
public int LocalCost { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
LocalCurrency
ISO-4217 code of the currency used in the purchase.
Declaration
public string LocalCurrency { get; set; }
public string LocalCurrency { get; set; }
Property Value
Type | Description |
---|---|
String |
PurchaseData
A JSON encoded string returned from a successful in app billing purchase.
Declaration
public string PurchaseData { get; set; }
public string PurchaseData { get; set; }
Property Value
Type | Description |
---|---|
String |
PurchaseDataSignature
A signature of the PurchaseData returned from a successful in app billing purchase.
Declaration
public string PurchaseDataSignature { get; set; }
public string PurchaseDataSignature { get; set; }
Property Value
Type | Description |
---|---|
String |
RealMoneyPurchaseId
Configuration ID of the purchase to make.
Declaration
public string RealMoneyPurchaseId { get; set; }
public string RealMoneyPurchaseId { get; set; }
Property Value
Type | Description |
---|---|
String |