Skip to content

Unreal

This guide provides instructions for setting up payment functionality within the Hive SDK in Unreal Engine.

Hive Console configuration

To use Hive SDK billing, you must first complete the Configuration for Payment Providers in the Hive Console Billing, including registering key values and integrating markets.

Note

For Google Play support, refer to Google Market Account Registration.

Adding the market

  1. In the Unreal Editor, click Edit > Project Settings from the menu. The Project Settings window will appear.
  2. In the Project Settings window, click Hive SDK > Dependency – Android / Dependency – iOS in the left panel.

  3. Select the authentication features you wish to use in the Market.

Disabling Google billing built-in to Unreal engine

When using Google Play Store payments, there can be compatibility issues between the latest version of the Google Billing Library used by the Hive SDK and the Google Billing feature built-in to Unreal Engine, resulting in build failures. Modify the following code to ensure a successful build.

  1. Navigate to /Engine/Plugins/Online/Android/OnlineSubsystemGooglePlay/Source/OnlineSubsystemGooglePlay.Build.cs.
  2. Comment out the following lines of code:

    //string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, Target.RelativeEnginePath);
    //AdditionalPropertiesForReceipt.Add("AndroidPlugin", Path.Combine(PluginPath, "OnlineSubsystemGooglePlay_UPL.xml"));