# How to create non-consumable IAP and restore it on Android?

**URL:** <https://forums.unrealengine.com/t/how-to-create-non-consumable-iap-and-restore-it-on-android/470196>\
**Category:** Mobile\
**Tags:** iap, in-app-purchase, unreal-engine, Android, question\
**Created:** [August 23, 2020, 2:50pm UTC](https://forums.unrealengine.com/t/how-to-create-non-consumable-iap-and-restore-it-on-android/470196 "2020-08-23T14:50:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_894e2124](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_894e2124](https://forums.unrealengine.com/u/anonymous_user_894e2124)\
**Post date:** [August 23, 2020, 2:50pm UTC](https://forums.unrealengine.com/t/how-to-create-non-consumable-iap-and-restore-it-on-android/470196/1 "2020-08-23T14:50:38Z")

</div>

Hi!

I was able to implement IAP on Android except for non-consumable IAP.

In Engine\Plugins\Online\Android\OnlineSubsystemGooglePlay\ Source\Java\com\epicgames\ue4\GooglePlayStoreHelper.java I found ConsumePurchase() that executes after every purchase and makes my purchase as consumable, but I want to have it as non-consumable purchase and be able to restore it. To do this [acknowledgePurchase](https://developer.android.com/reference/com/android/billingclient/api/BillingClient#acknowledgepurchase)() should be executed instead of ConsumePurchase(). But iI didn’t found acknowledgePurchase() in GooglePlayStoreHelper.java.

How to perform non-consumable purchase on Android and how to restore it?

---

<div class="post-metadata">

**Author:** ![Allenheathx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Allenheathx](https://forums.unrealengine.com/u/Allenheathx)\
**Post date:** [December 4, 2020, 2:56am UTC](https://forums.unrealengine.com/t/how-to-create-non-consumable-iap-and-restore-it-on-android/470196/2 "2020-12-04T02:56:42Z")

</div>

I have same problem. Consumable purchases work but non-consumable purchase don’t get a response from google play. I upgraded to 4.26 but still get no response from google play for non-consumable purchases. I am using store v2 nodes.

---

<div class="post-metadata">

**Author:** ![Ashyankee](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ashyankee/32/88719_2.png) [@Ashyankee](https://forums.unrealengine.com/u/Ashyankee)\
**Post date:** [April 21, 2021, 11:17pm UTC](https://forums.unrealengine.com/t/how-to-create-non-consumable-iap-and-restore-it-on-android/470196/3 "2021-04-21T23:17:16Z")

</div>

Did you find a solution eventually?

---

<div class="post-metadata">

**Author:** ![Arturogalaxy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Arturogalaxy](https://forums.unrealengine.com/u/Arturogalaxy)\
**Post date:** [July 19, 2021, 4:53pm UTC](https://forums.unrealengine.com/t/how-to-create-non-consumable-iap-and-restore-it-on-android/470196/4 "2021-07-19T16:53:43Z")

</div>

I have the same problem, is there any solution for this yet?

---

<div class="post-metadata">

**Author:** ![Arturogalaxy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Arturogalaxy](https://forums.unrealengine.com/u/Arturogalaxy)\
**Post date:** [July 22, 2021, 11:34am UTC](https://forums.unrealengine.com/t/how-to-create-non-consumable-iap-and-restore-it-on-android/470196/5 "2021-07-22T11:34:06Z")

</div>

> [@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/6):
>
> to Stanger: I am not a good programmer so take what I say with a grain of salt; but I do it this whay, is a variation from this old post: so in GooglePlayStoreHelper.java I modify QueryInAppPurchases() to show in the blueprint node readInAppPurchaseInformation2 offer id string if that product is Owned. I will include screen captures. I selected the text in the captures by error thats not the only lines that changes. in the blueprint capture just use v2 node; and offer id string If im not w…

a possible solution is explained in this thread.
