HOME.en.md




RU EN
🏠 Home ❮ Back

RuStore Godot Plugin for Payment Acceptance

The RuStoreGodotPay plugin helps integrate a payment mechanism into your project. Supports Godot Engine 4.3+.

Installing the Plugin

  1. Go to the Releases section of the project repository on GitFlic.

  2. Download the RuStoreGodotPay.zip and RuStoreGodotCore.zip artifacts from the selected release.

  3. Unpack the downloaded archives into the addons folder in the root of your Godot project, so that the following structure is obtained:

📁 your_project
└─ 📁 addons
   ├─ 📁 RuStoreGodotPay
   │  ├─ plugin.cfg
   │  ├─ plugin.gd
   │  ├─ RuStoreGodotPay.aar
   │  ├─ RuStoreGodotPay.gd
   │  └─ ...
   └─ 📁 RuStoreGodotCore
      ├─ plugin.cfg
      ├─ plugin.gd
      ├─ RuStoreGodotCore.aar
      ├─ RuStoreGodotCore.gd
      └─ ...
  1. In the project settings, on the Modules tab, enable the RuStore Godot Pay and RuStore Godot Core modules.

SDK Initialization

Add metadata inside the <application> tag in AndroidManifest.xml:

<meta-data android:name="console_app_id_value" android:value="ВАШ_ID_ПРИЛОЖЕНИЯ" />
<meta-data android:name="internal_config_key" android:value="godot" />
<meta-data android:name="sdk_pay_scheme_value" android:value="yourappscheme" />
  • console_app_id_value — the application ID from the RuStore Console. The application ID is the numbers in the URL between apps/ and /versions.
  • internal_config_key — always has the value godot.
  • sdk_pay_scheme_value — the deeplink scheme.

The values can be extracted into a resource file. See an example in godot_example/android/build_example/res/values/rustore_values.xml.

Processing Deeplink

A deeplink is necessary to return the user from a third-party payment app back to your app.

Create a class RuStoreIntentFilterActivity and add an intent-filter to the manifest.

| Godot 4.6+ | Godot <4.6 | |---|---| | build_example_4.6+/src/main/java/com/godot/game/RuStoreIntentFilterActivity.java | build_example/src/com/godot/game/RuStoreIntentFilterActivity.java |

For more details on setting up the deeplink, see the online guide.

Working with the SDK

Study the class catalog or the online guide.

Technical Support

Additional help is available in the RuStore documentation and by email at support@rustore.ru.

Terms of Distribution

This software is distributed under the MIT license. See MIT-LICENSE.