private void PurchaseStateChanged(int startId, string signedData, string signature)
{
List<Security.VerifiedPurchase> purchases;
purchases = Security.VerifyPurchase(signedData, signature);
if (purchases == null)
{
return;
}
List<string> notifyList = new List<string>();
foreach (Security.VerifiedPurchase vp in purchases)
{
if (vp.notificationId != null)
{
notifyList.Add(vp.notificationId);
}
ResponseHandler.PurchaseResponse(this, vp.purchaseState, vp.productId, vp.orderId, vp.purchaseTime, vp.developerPayload);
}
if (notifyList.Count > 0)
{
string[] notifyIds = notifyList.ToArray();
ConfirmNotificationsMethod(startId, notifyIds);
}
}