Skip to content

Commit

Permalink
fixed 121
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiMisiukevich committed Feb 26, 2018
1 parent 1de6b2d commit 380773a
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -319,12 +319,8 @@ async Task<Purchase> PurchaseAsync(string productSku, string itemType, string pa
//Generic Error
throw new InAppBillingPurchaseException(PurchaseError.GeneralError);
case 7:
var purchases = await GetPurchasesAsync(itemType, verifyPurchase);

var purchase = purchases.FirstOrDefault(p => p.ProductId == productSku && payload.Equals(p.DeveloperPayload));

return purchase;
//already purchased
throw new InAppBillingPurchaseException(PurchaseError.AlreadyOwned);
}

var pendingIntent = buyIntentBundle.GetParcelable(RESPONSE_BUY_INTENT) as PendingIntent;
Expand Down

0 comments on commit 380773a

Please sign in to comment.