# \[4.9.1\] "Read In App Purchase Information" node don't work

**URL:** <https://forums.unrealengine.com/t/4-9-1-read-in-app-purchase-information-node-dont-work/333557>\
**Category:** Blueprint\
**Tags:** purchase, in-app-purchase, unreal-engine, Blueprint, question\
**Created:** [September 27, 2015, 3:15pm UTC](https://forums.unrealengine.com/t/4-9-1-read-in-app-purchase-information-node-dont-work/333557 "2015-09-27T15:15:29Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArcadeOrigins](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArcadeOrigins](https://forums.unrealengine.com/u/ArcadeOrigins)\
**Post date:** [September 27, 2015, 3:15pm UTC](https://forums.unrealengine.com/t/4-9-1-read-in-app-purchase-information-node-dont-work/333557/1 "2015-09-27T15:15:29Z")

</div>

Hello,

the “Make In App Purchase” node succesffully work. I tested it with a complete Google Play beta test installation on Android.

 ![60426-androidreadinappbug2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/2/322c8076ae47a039d78727c797e8f0e545c69782.jpeg)

But when I want to get the display price and name with the “Read In App Purchase Information” node, I always obtain a Failure. The node does not seem functional ? Is there another way to get this informations ?

 ![60428-androidreadinappbug3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/9/5e943df8f777887f3d0265b1bd6ce5c21166101d.jpeg)

Thanks, Eddy

---

<div class="post-metadata">

**Author:** ![Hazeti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hazeti](https://forums.unrealengine.com/u/Hazeti)\
**Post date:** [October 15, 2015, 11:46am UTC](https://forums.unrealengine.com/t/4-9-1-read-in-app-purchase-information-node-dont-work/333557/2 "2015-10-15T11:46:28Z")

</div>

Just like to say I’m seeing the exact same thing. Making a purchase works fine. When reading in app purchase it fails.

Inside GooglePlayStoreHelper onQueryInventoryFinished; isSuccess is returning true however inventory.HasDetails is always returning false, despite confirming that the productIDs I’m querying for are correct.

---

<div class="post-metadata">

**Author:** ![gameDNA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamedna/32/1209504_2.png) [@gameDNA](https://forums.unrealengine.com/u/gameDNA)\
**Post date:** [October 29, 2015, 12:25am UTC](https://forums.unrealengine.com/t/4-9-1-read-in-app-purchase-information-node-dont-work/333557/3 "2015-10-29T00:25:01Z")

</div>

I have the same problem. What’s going on?

---

<div class="post-metadata">

**Author:** ![Hazeti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hazeti](https://forums.unrealengine.com/u/Hazeti)\
**Post date:** [October 29, 2015, 9:52am UTC](https://forums.unrealengine.com/t/4-9-1-read-in-app-purchase-information-node-dont-work/333557/4 "2015-10-29T09:52:51Z")

</div>

The fault lies with the code. I’ve brought it to the attention of the UE devs and they are putting in a fix. But if you wish to fix this yourself you can go to GooglePlayStoreHelper.java. In the function QueryInAppPurchases around line 167; replace the call to

```
inAppPurchaseHelper.queryInventoryAsync(GotInventoryListener);

```

with

```
List<String> moreSkus = new ArrayList<String>();
for (String productID : ProductIds) 
{
	moreSkus.add(productID);
}
inAppPurchaseHelper.queryInventoryAsync(true, moreSkus, GotInventoryListener);

```

And that should fix up this particular problem. I’m still having issues tbh but I’m attempting to very slowly work my way through. It’s almost like they don’t test this stuff 😉

---

<div class="post-metadata">

**Author:** ![ArcadeOrigins](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArcadeOrigins](https://forums.unrealengine.com/u/ArcadeOrigins)\
**Post date:** [November 3, 2015, 10:06pm UTC](https://forums.unrealengine.com/t/4-9-1-read-in-app-purchase-information-node-dont-work/333557/5 "2015-11-03T22:06:20Z")

</div>

Thanks for the trick it works fine 🙂

HazeTI, it just lacks the first line beginning in your post:

```
 1. ArrayList<String> moreSkus = new ArrayList<String>();
```

---

<div class="post-metadata">

**Author:** ![Hazeti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hazeti](https://forums.unrealengine.com/u/Hazeti)\
**Post date:** [November 4, 2015, 9:47am UTC](https://forums.unrealengine.com/t/4-9-1-read-in-app-purchase-information-node-dont-work/333557/6 "2015-11-04T09:47:24Z")

</div>

Glad to have helped, though we must be using different versions as I had to add that whole segment.

---

<div class="post-metadata">

**Author:** ![Distul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Distul](https://forums.unrealengine.com/u/Distul)\
**Post date:** [November 29, 2015, 3:07pm UTC](https://forums.unrealengine.com/t/4-9-1-read-in-app-purchase-information-node-dont-work/333557/7 "2015-11-29T15:07:05Z")

</div>

Was this fixed in 4.10? I’m also getting a failed response and my app is published.

---

<div class="post-metadata">

**Author:** ![Lordink](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lordink](https://forums.unrealengine.com/u/Lordink)\
**Post date:** [November 29, 2015, 3:30pm UTC](https://forums.unrealengine.com/t/4-9-1-read-in-app-purchase-information-node-dont-work/333557/8 "2015-11-29T15:30:06Z")

</div>

no, you still have to apply the fix above manually to the engine code.

---

<div class="post-metadata">

**Author:** ![Distul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Distul](https://forums.unrealengine.com/u/Distul)\
**Post date:** [November 30, 2015, 3:44am UTC](https://forums.unrealengine.com/t/4-9-1-read-in-app-purchase-information-node-dont-work/333557/9 "2015-11-30T03:44:36Z")

</div>

Thanks. The last time I tried to compile the engine it gave me problems.

---

<div class="post-metadata">

**Author:** ![gameXcore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gameXcore](https://forums.unrealengine.com/u/gameXcore)\
**Post date:** [February 23, 2016, 9:14pm UTC](https://forums.unrealengine.com/t/4-9-1-read-in-app-purchase-information-node-dont-work/333557/10 "2016-02-23T21:14:49Z")

</div>

This thread is old and no longer an issue (it appears resolved in 4.10.3), however it also appears to be the go-to thread showing up on searches for issues with this node therefore I just want to add a comment regarding some behavior as it has been causing me trouble this afternoon.

**The “Read In App Purchase Information” node will fail if called multiple times before previous calls have executed**

If you have this setup neither “On Success” or “On Failure” will ever be called.

In my case I had a user widget setup as a button for purchasing “X amount of currency”, then this button appeared it would call “Read In App Purchase Information” for its own transaction, resulting in Y number of calls to the function in quick succession, none of which would ever return.

I had to fix this by accumulating the calls outside of the individual buttons and submitting them all at once.

Hope this helps if someone else finds themselves in the same situation.

---

<div class="post-metadata">

**Author:** ![psymnoper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@psymnoper](https://forums.unrealengine.com/u/psymnoper)\
**Post date:** [October 31, 2019, 2:39pm UTC](https://forums.unrealengine.com/t/4-9-1-read-in-app-purchase-information-node-dont-work/333557/11 "2019-10-31T14:39:49Z")

</div>

How to check if an item is already bought or not ?

---

<div class="post-metadata">

**Author:** ![Herdin4ever](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/herdin4ever/32/641565_2.png) [@Herdin4ever](https://forums.unrealengine.com/u/Herdin4ever)\
**Post date:** [March 29, 2023, 1:17am UTC](https://forums.unrealengine.com/t/4-9-1-read-in-app-purchase-information-node-dont-work/333557/12 "2023-03-29T01:17:18Z")

</div>

i seem to be having this issue , not sure i fully understand your solution.

 ![Screenshot 2023-03-28 175147](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/8/3c851fe4959b5f6fda8605dff4beda415a3f2c2a.png)  
 ![Screenshot 2023-03-28 175125](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/3/573d9fda45a7723b236ccedebc1bddcef72a23fc.png)
