Skip to content

Commit

Permalink
Update PurchaseNonConsumable.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno authored Oct 7, 2022
1 parent c2598ea commit 26c19ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/PurchaseNonConsumable.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ All purchases go through the `PurchaseAsync` method and you must always `Connect
/// <param name="verifyPurchase">Verify Purchase implementation</param>
/// <returns>Purchase details</returns>
/// <exception cref="InAppBillingPurchaseException">If an error occures during processing</exception>
Task<InAppBillingPurchase> PurchaseAsync(string productId, ItemType itemType, IInAppBillingVerifyPurchase verifyPurchase = null);
Task<InAppBillingPurchase> PurchaseAsync(string productId, ItemType itemType);
```

On Android you must call `FinalizePurchaseAsync` within 3 days when a purchase is validated. Please read the [Android documentation on Pending Transactions](https://developer.android.com/google/play/billing/integrate#pending) for more information.
Expand All @@ -41,7 +41,7 @@ public async Task<bool> PurchaseItem(string productId)
}

//check purchases
var purchase = await billing.PurchaseAsync(productId, ItemType.InAppPurchase, payload);
var purchase = await billing.PurchaseAsync(productId, ItemType.InAppPurchase);

//possibility that a null came through.
if(purchase == null)
Expand Down

0 comments on commit 26c19ac

Please sign in to comment.