Set up the plugin for your UE4 Project

  1. Open your UE4 project in Unreal Editor.
  2. For Blueprint projects only:
    1. Compile your UE4 project.
    2. Go to the Content Browser and add a New C++ Class with the None parent node.
  3. Go to Settings > Plugins > Installed > Xsolla Payments SDK. Check the Enabled box and click the Restart Now button to save settings and reload the Unreal Editor.
  4. Go to Content Browser > View Options and check the boxes for Show Engine Content and Show Plugin Content.

  1. Import a JSON file with in-game items list to your UE4 project:
    1. Go to Content Browser.
    2. In the right-click menu go to New Asset > Import to.
    3. Select the previously created JSON file. Unreal Editor will offer you to create a new DataTable asset.
    4. Choose XsollaItemFormat for row type and set import key field name sku.
    5. Click OK.

  1. When importing an asset, there might be some warnings for items with the bundle_content field set to null. They can be ignored. As a result, you should get a data table that looks like the image below.

  1. Connect the added asset:
    1. Go to Content Browser > XsollaPayments Content > UI folder and open W_StoreDemo_SI blueprint.
    2. Go to the Graph view.
    3. Click Class Defaults.
    4. In the Details panel, specify the asset created in the previous steps.

  1. Go to Settings > Project Settings > Plugins > Xsolla Payments and specify the Project ID.

  1. Go to Content Browser > XsollaPayments Content > Maps and launch the ServerlessIntegrationDemo demo map of the game.

  1. Customize the integration demo settings if needed:
    1. Follow UMG UI Designer documentation to customize the user interface.
    2. Set up events processing.

Note
To modify the SDK for your application specifics, follow the SDK modification instruction.
Was this article helpful?
Thank you!
Is there anything we can improve? Message
We're sorry to hear that
Please explain why this article wasn't helpful to you. Message
Thank you for your feedback!
We'll review your message and use it to help us improve your experience.

Continue reading