Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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


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

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 ? alt text

Thanks, Eddy

Product Version: UE 4.9
more ▼

asked Sep 27 '15 at 03:15 PM in Blueprint Scripting

avatar image

76 7 11 21

avatar image Hazeti Oct 15 '15 at 11:46 AM

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.

avatar image gameXcore Feb 23 '16 at 09:14 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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



 List<String> moreSkus = new ArrayList<String>();
 for (String productID : ProductIds) 
 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 ;)

more ▼

answered Oct 29 '15 at 09:52 AM

avatar image

90 9 13 17

avatar image Eddy71 Nov 03 '15 at 10:06 PM

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>();

avatar image Hazeti Nov 04 '15 at 09:47 AM

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

avatar image Distul Nov 29 '15 at 03:07 PM

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

avatar image Lordink Nov 29 '15 at 03:30 PM

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

avatar image Distul Nov 30 '15 at 03:44 AM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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

more ▼

answered Oct 29 '15 at 12:25 AM

avatar image

gameDNA studio
121 9 15 24

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question