Read In App Purchase issue

Hello I wanted to ask some questions about the “Read In-App Purchase” node I can’t make it work despite I have configured things correctly as written in the EU4 documentation.

  • On UE4 I configured the nodes as follows, within the widget to buy the premium currency of my game, the following event is called inside the “Event Construct”.

  • Within the google play console I have configured the packages that you can buy in this way

Why when I try to do the “development build” the node to read the “In App Purchase” always goes to “On Failure”?

I’ve already added the Game App ID and some extra permissions. What i’m doing wrong ?

Can someone help me? Because I can’t find a lot of information around. Thanks.

Hi, are you following this documentation?
if you did make sure you do step 6 inside the engine folder and not the project folder.

do you test with an uploaded build?
Upload your apk to the internat test track.

Hi Ikav and thanks for answering me, I had already read this documentation, I think I made a mistake with point 6, I searched for the file “AndroidEngine.ini” inside the folder in the game and I did not find it, now I followed your advice and I searched for it inside the engine folder and I added the line “[OnlineSubsystemGooglePlay.Store].
bSupportsInAppPurchasing=True” under the “[OnlineSubsystem]” line
“DefaultPlatformService=GooglePlay” Did I do right?
Now I’m doing a build in shipping mode and I’m publishing it in internal alpha test, I try and let you know, thank you very much.

Translated with DeepL Translate: The world's most accurate translator

It still not working :frowning:

yeah, sounds right.
In the Project Settings under Platforms Android do you have the Google Play License Key field out?
(You don’t have to show it / don’t show it just check if you insert the key)
It’s a long string with numbers and letters.

And check again that you have the Extra permission “com.android.vending.BILLING”

I confirm that I have entered the long string, the game ID and also the BILLING extra permission, I have also published the “Google Play Services”. Could it be that I miss some API ?

I checked, and I have all the necessary “API”, I’m thinking that maybe I miss the node “Show external login ui” to allow the user to login to google services ?

you don’t need to do that the make IAP will trigger a Google play popup which ask for login and the payment method.

Ok I think my problem is the OAuth 2.0 key I have to submit the approval form, it’s the last thing I have to try.