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¶
- In the Unreal Editor, click Edit > Project Settings from the menu. The Project Settings window will appear.
-
In the Project Settings window, click Hive SDK > Dependency – Android / Dependency – iOS in the left panel.
-
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.
- Navigate to
/Engine/Plugins/Online/Android/OnlineSubsystemGooglePlay/Source/OnlineSubsystemGooglePlay.Build.cs
. -
Comment out the following lines of code: