Would anyone know why GooglePlayTangle.Data() is throwing these errors:
Assets/Purchaser.cs(258,79): error CS0103: The name `GooglePlayTangle’ does not exist in the current context
Assets/Purchaser.cs(259,58): error CS1502: The best overloaded method match for `UnityEngine.Purchasing.Security.CrossPlatformValidator.CrossPlatformValidator(byte[ ], byte[ ], string)’ has some invalid arguments
Assets/Purchaser.cs(259,58): error CS1503: Argument #1' cannot convert object’ expression to type `byte[ ]’
public PurchaseProcessingResult ReceiptCheck (PurchaseEventArgs e)
{
#if UNITY_ANDROID || UNITY_IOS || UNITY_STANDALONE_OSX
CrossPlatformValidator validator = new CrossPlatformValidator(GooglePlayTangle.Data(), // 258
AppleTangle.Data(), Application.bundleIdentifier); // 259
try {
// On Google Play, result has a single product ID.
// On Apple stores, receipts contain multiple products.
var result = validator.Validate(e.purchasedProduct.receipt);
// For informational purposes, we list the receipt(s)
Debug.Log("Receipt is valid. Contents:");
foreach (IPurchaseReceipt productReceipt in result) {
Debug.Log(productReceipt.productID);
Debug.Log(productReceipt.purchaseDate);
Debug.Log(productReceipt.transactionID);
}
} catch (IAPSecurityException) {
Debug.Log("Invalid receipt, not unlocking content");
}
return PurchaseProcessingResult.Complete;
#endif
}
