in Facebook.Unity/Purchase.cs [45:98]
internal Purchase(
string developerPayload,
bool isConsumed,
string paymentActionType,
string paymentID,
string productID,
string purchasePlatform,
IDictionary<string, object> purchasePrice,
long purchaseTime,
string purchaseToken,
string signedRequest)
{
if (string.IsNullOrEmpty(paymentActionType))
{
throw new ArgumentNullException("paymentActionType");
}
if (string.IsNullOrEmpty(paymentID))
{
throw new ArgumentNullException("paymentID");
}
if (string.IsNullOrEmpty(productID))
{
throw new ArgumentNullException("productID");
}
int purchaseTimeInt;
try {
purchaseTimeInt = Convert.ToInt32(purchaseTime);
} catch (OverflowException) {
throw new ArgumentException("purchaseTime");
}
if (string.IsNullOrEmpty(purchaseToken))
{
throw new ArgumentNullException("purchaseToken");
}
if (string.IsNullOrEmpty(signedRequest))
{
throw new ArgumentNullException("signedRequest");
}
this.DeveloperPayload = developerPayload;
this.PaymentActionType = paymentActionType;
this.PaymentID = paymentID;
this.ProductID = productID;
this.PurchasePlatform = purchasePlatform;
this.PurchasePrice = new CurrencyAmount(purchasePrice["currency"].ToStringNullOk(), purchasePrice["amount"].ToStringNullOk());
this.PurchaseTime = Utilities.FromTimestamp(purchaseTimeInt);
this.PurchaseToken = purchaseToken;
this.SignedRequest = signedRequest;
}