# Google Play IAP asyncQueryPurchases Not working

**URL:** <https://forums.unrealengine.com/t/google-play-iap-asyncquerypurchases-not-working/484605>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 8, 2021, 8:49pm UTC](https://forums.unrealengine.com/t/google-play-iap-asyncquerypurchases-not-working/484605 "2021-06-08T20:49:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Robbe1912](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Robbe1912](https://forums.unrealengine.com/u/Robbe1912)\
**Post date:** [June 8, 2021, 10:36pm UTC](https://forums.unrealengine.com/t/google-play-iap-asyncquerypurchases-not-working/484605/2 "2021-06-08T22:36:36Z")

</div>

Our IAP item is non-consumable.  
Just tested IAP with 4 debug buttons. I tested “process new unprocessed purchasesv2”, “restore purchasesv2”, “query owned purchases” and “read in app purchasesv2”.

both restore and query always return “success” with no receipts. query also returns “failure” with no receipts.

read IAP information returns successfully with all the information about the entry that is put in the product identifier array.

reprocess unprocessed purchases returns 2 times “successful” after a transaction has been made and then the receipts double every time the button gets clicked. this breaks the “you already purchased this item” dialogue from googleplay though and you can buy the item again.  
We applied this fix to not be able to purchase the item multiple times, so the googleplay API gets an acknowledgement about the purchase:

> [@Android letting me purchase a non-consumable product more than 1 time](https://forums.unrealengine.com/t/android-letting-me-purchase-a-non-consumable-product-more-than-1-time/225684/4):
>
> I fixed this finally. Problem lies within the engine itself. According to Google, all purchases need to be “acknowledged” after the successful purchase event. I checked the GooglePlayStoreHelper.java file at Engine → Plugins → Online → Android → OnlineSubsytemGooglePlay → Source → Java → BillingApiV2 → com → EpicGames → ue4 → GooglePlayStoreHelper.java. Check the OnPurchaseResult method. There is no code for acknowledgement. In fact without acknowledgement, Google play will refund the purchase …

---

_[View the full topic](https://forums.unrealengine.com/t/google-play-iap-asyncquerypurchases-not-working/484605)._
