Android In-app purchases Fix

Arthurøk
Fri, 17 Nov 2023 22:59:47 +0000
International

Hello, to everyone who is experiencing problems with the purchasing system in Unreal Engine 4/5!
The way I found to SOLVE this was to upload a new keystore to the Google Play Console and a bunch of other things, to create a new keystore (Follow the tutorial in the link below, don’t forget to like)
IMPORTANT: After the tutorial, if necessary, delete the new version of Java installed in the environment variables and go back to the previous version to avoid JDK errors when compiling your game.

Procedures in Unreal Engine/Google Play Console

To add a new keystore to your game on the Google Play Console go to > Versions > Configuration > App Signing > Upgrade your app’s signing key - Select the java keystore key option and a reason, watch the video to understand better = https://www.youtube.com/watch?v=pCczRHsdNOY

install Google Play Service related plugins!

In EU, on-premises > Project Settings > Platforms > Android

The key license must be entered, you will find it under > Google Play Console > Monetization > Monetization setup > License

Enter the game ID that is shown in the Google Play Console, go to > Growth > Google Play Game Related Services > Setup and Management > Setup > Project ID (12 numbers)!

Enable Google Play Support (Enabled)

Add 2 Extra Tags to node:

com.google.android.gms.games.APP_ID=“@string/app_id”
com.google.android.gms.appstate.APP_ID=“@string/app_id”

Add 5 tags in Extra Permissions:

android.permission.INTERNET
android.permission.ACCESS_NETWORK_STATE
com.android.vending.BILLING
android.permission.USE_CREDENTIALS
android.permission.GET_ACCOUNTS

(I didn’t really understand this part but I did it this way and it worked).

The blueprint (Shopping Menu Widget) in the image shown was the only one that worked for me, I tried 4 ways, I will publish a related video as soon as possible, I ask you to open my profile if you want to see the video as I am publishing this solution in all topics related to this problem because I know it is very stressful.
After node Make an in-app purchase, the item you sold must be inserted in on success, try to adapt this logic according to your project.

If you need help, contact me.
Luis Ramos

5 posts - 3 participants