UE4 In-App Purchase crashes after successful payment

When I make a purchase in the game, everything goes fine till Payment Successful UI, and then the game crashes. The money is deducted but the process was incomplete. It dint execute SUCCESS statements nor the product got consumed because of which I cant re-buy the product again.

Is there a way to fix this or am I doing it wrong?

Thankyou

VJ

Logcat

E/AndroidRuntime( 1992): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=10001, result=-1, data=Intent { (has extras) }} to activity {com.tinyshark.spherobot/com.epicgames.ue4.GameActivity}: java.lang.IllegalArgumentException: com.android.vending.billing.util.Base64DecoderException: invalid padding byte '=' at byte offset 20

E/AndroidRuntime( 1992): 	at com.epicgames.ue4.GooglePlayStoreHelper.a(Unknown Source)

E/AndroidRuntime( 1992): 	at com.epicgames.ue4.GameActivity.onActivityResult(Unknown Source)

W/ActivityManager( 1136):   Force finishing activity 1 com.tinyshark.spherobot/com.epicgames.ue4.GameActivity

W/InputDispatcher( 1136): channel 'cf80270 com.tinyshark.spherobot/com.epicgames.ue4.GameActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9

E/InputDispatcher( 1136): channel 'cf80270 com.tinyshark.spherobot/com.epicgames.ue4.GameActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

Blueprint

Build.cs

if (Target.Platform == UnrealTargetPlatform.Android)
        {
            PublicDependencyModuleNames.Add("OnlineSubsystem");
            DynamicallyLoadedModuleNames.Add("OnlineSubsystemGooglePlay");
        }

DefaultEngine.ini

[OnlineSubsystem]
DefaultPlatformService=NULL

[/Script/AndroidRuntimeSettings.AndroidRuntimeSettings]
bEnableGooglePlaySupport=True

[OnlineSubsystemGooglePlay.Store]
bSupportsInAppPurchasing=True

I have the same problem. Any answer will be greatly appreciated. :slight_smile:

Okay, I tried it with UE 4.11.0 Preview 4 and it fixed the issue. But migrating from 4.10 to 4.11 raise packaging issues so I created another project and manually placed all the content, source and ini files.

Hopefully everything goes smoother with 4.11 release.

Tip: Make sure you remove the plugins again to reduce the size. Removing few plugins can cause issues.